Chuck Williams wrote:
Why would a thread pool be more controversial? Dynamically creating and garbaging threads has many downsides.
The JVM already pools native threads, so mostly what's saved by thread pools is the allocation & initialization of new Thread instances. There are also downsides to thread pools. They alter ThreadLocal semantics and generally add complexity that may not be warranted.
Like most optimizations, use of thread pools should be motivated by benchmarks.
Doug --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]