Hi,
I would like to use a
thread pool to do a job requiring several asynchronous tasks. I looked up some TP implementations available including the one in
Java 1.5.0. When I assign a Runnable task to a thread in the TP what happens to this thread when the task is finished. Is this thread returned back to the TP or does it just hang on being in an idle state waiting for the main thread to clean it up? To be specific java 1.5s java.util.concurrent package talks about "automatic thread reclamation" for the method Executors.newCachedThreadPool(). Does this reclamation imply that the worker threads which have already been assigned a task and have finished it and are ready to accept new tasks, reclaimed to be assigned new tasks?
Thanks
Indradeep.