Christopher Popp wrote:
I think you might be confusing the thread model a bit...with MINA you don't 
need a thread per client.  There is one thread listening which handles 
accepting connections.  There are then a configurable pool of I/O handling 
threads (defaulting to # of cores +1) which handle incoming messages.  
Optionally, you can specify an ExecutorFilter in your filter chain if you want 
another pool of threads available later in case you expect this would benefit 
your application logic.

So...at a minimum, you could configure MINA to only use two threads (one for accepting, and one for processing I/O), and have that handle any number of connected clients.
I would say three : main, the IoAcceptor thread and a IoProcessor thread. Not a big difference though :)

--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to