Saturday, August 3, 2002 02:55 AM
A thread is a resource that takes some time to create and destroy. If you would create and start a thread to carry out some work, it would be destroyed also after this work has been done.
But if you pool threads, that is create them in advance, let them wait for work, and communicate with it by giving it some task, you can reuse a thread to do several tasks.
This mechanism, called "thread pooling", allows threading without the overhead of creating, starting and destroying a thread for each piece of work to be done.
Hope this helps.
Günther Van Roey.http://www.javacoding.net