[Mono-list] ThreadPool, why?

Arild Fines arild.fines@broadpark.no
Wed, 27 Aug 2003 21:56:12 +0200


mono-list-admin@lists.ximian.com wrote:
> Subject: [Mono-list] ThreadPool, why?
>

> I don't understand the benefits of using a ThreadPool instead of
> launching simple Threads, I have read in several articles that its
> just more efficient, but I don't know why? What are the advantages of
> using ThreadPools ?

Because threads can(at least in some environments) be pretty expensive to
create, and the overhead is just too much for very shortlived tasks. Better
then to precreate a bunch of threads which you can just pass off work to
whenever you need it.

--
Arild

AnkhSVN: http://ankhsvn.tigris.org
Blog: http://ankhsvn.com/blog
RSS: http://ankhsvn.com/blog/Rss.aspx