Hello all,

I'm a bit confused with SocketAcceptor( int processorCount, Executor executor ).

Internally this creates a new SocketIoProcessor for each processorCount.  But 
the SocketIoProcessors all share the same Executor.  What's the advantage of 
having multiple instances of SocketIoProcessor?

If you use a pooling Executor like Executors.newCachedThreadPool()  or 
Executors.newFixedThreadPool(int nThreads) is this creating a new thread for 
each connection?

How does this relate to an ExecutorFilter in the IoHandlerChain?

If I want a few IO processing threads, which re-use threads from a pool, and 
worker threads which use a separate pool what is the best way to do this?  I 
don't want a thread per connection.

Thanks
Rob






       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

Reply via email to