Overview
Features
Download
Documentation
Community
Add-Ons & Services

ThreadPool not killing expired idle threads

Please post support and help requests here.

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
jimfr
 
Posts: 8
Joined: 05 Mar 2009, 01:58

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().
guenter
 
Posts: 1130
Joined: 11 Jul 2006, 16:27
Location: Austria


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests