directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
Subject RE: [mina] SocketIoProcessor.Worker creation under heavy load
Date Thu, 27 Oct 2005 10:22:47 GMT
> From: Irving, Dave [mailto:dave.irving@logicacmg.com]
> 
> > Interesting. Why not using a Thread Pool for this?
> > It may easily solve this issue as threads will stay for some time
and
> being reused.
> 
> If you did so, I think it would be a pool of 1: There's only ever one
> worker in use at a time (AFAIK).

But that is OK, Executors have such size 1 thread pools. This may be
much cheaper than creating and destroying threads.

Jose Alberto


Mime
View raw message