ThreadPool not killing expired idle threads

Please post support and help requests here.
jimfr
Posts: 8
Joined: 05 Mar 2009, 01:58

ThreadPool not killing expired idle threads

Postby jimfr » 15 Apr 2009, 20:55

Do I need to have another thread that periodically calls ThreadPool::collect() say once per second to cause the pool to release expired threads (in excess of min thread count) to back to the OS?

Jim

guenter
Posts: 1191
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: ThreadPool not killing expired idle threads

Postby guenter » 16 Apr 2009, 17:53

Yes, you'll have to call collect() yourself. collect() is also called whenever you start a thread from the pool or call joinAll().


Return to “Support”

Who is online

Users browsing this forum: No registered users and 1 guest