Christopher Popp a écrit :
<Snip/> Digging through the code gives some interesting insight into how Mina works and why it is suggested that you use cached thread pools for the Acceptor and IoProcessor executors. They don't really use the executor to do their work, they just use the executor to create a thread and then it sticks around for a long time. Kind of an odd use of an executor, since you think you'd just use a ThreadFactory if you're looking for thread creation.
Well, I think it's much more to follow advice 68 from Joshua Bloch (Effective Java, edition 2) : "Prefer executors and tasks to threads"
