dcsimg
regarding thread
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Senthil_Kumar
Posted On:   Friday, August 2, 2002 12:02 AM


what is meant by "Thread Pool"?

Re: regarding thread

Posted By:   Anonymous  
Posted On:   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.


Regards,

G√ľnther Van Roey.

http://www.javacoding.net
About | Sitemap | Contact