[concurrency-interest] ThreadPoolExecutor

Andreas Sterbenz Andreas.Sterbenz@Sun.COM
Fri, 26 Sep 2003 18:33:53 +0100


Hi,

I was just looking at ThreadPoolExecutor and I think it really needs a 
constructor with less than the 5 arguments it requires now for EOU in 
unsophisticated applications (currently: 
http://gee.cs.oswego.edu/dl/concurrent/dist/docs/java/util/concurrent/ThreadPoolExecutor.html#constructor_summary 
).

I believe adding some subset of

ThreadPoolExecutor()
ThreadPoolExecutor(int corePoolSize)
ThreadPoolExecutor(int corePoolSize, BlockingQueue<Runnable> workQueue)

would be reasonable.

Andreas.