lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: ParallelMultiSearcher reimplementation
Date Fri, 03 Nov 2006 22:18:02 GMT
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 


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message