On Wed, 2014-03-26 at 23:00 +0530, Sajith Dilshan wrote:
> Hi everyone,
> 
> When I set the OP_WRITE event on a particular instance of
> org.apache.http.nio.reactor.IOSession, a worker thread will pick up that
> IOSession and will execute the outputReady(IOSession session) method of the
> respective org.apache.http.nio.reactor.IOEventDispatch implementation.
> 
> My question is that, is it possible for more than one thread to execute
> outputReady(IOSession session) method for the same instance of IOSession at
> the same time? 

it is possible on multi CPU core systems.

> Does a worker thread acquires a lock before executing
> outputReady(IOSession session) method for a particular IOSession instance?
> 

Yes, it does. Access to IOSession's internal structures is synchronized.
IOSession-s are fully thread safe.

Oleg 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to