I use DefaultThreadpool to dispatch work to in a standalone java-app. The problem is that the application never terminates, even after all my worker threads I added to Threadpool terminate (exit their run() methods).
Why doesn't threadpool stop to run() when it's queue is empty?
Also I do not understand the DefaultThreadPool(int size) constructor: it calls startThread size times. startThread then does:
Thread thread = new Thread( this ); thread.start(); return thread;
so the DefaultThreadPool replaces it's Thread object size times - what's the point in that?
what am I missing out on?
-- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
