
8 May
2008
8 May
'08
3:57 p.m.
Hi vincent, 2008/5/8 vicente.botet <vicente.botet@wanadoo.fr>:
In addition a cached thread should behaves as much as possible as a thread. A thread_pool is much more a multi_task scheduler than a thread factory.
Maybe a thread_pool with the needed policies can give the same result. Why not? . Task type : provide the thread functionality . Scheduling Policy : immediate (Synchronous) . Size Policy creates a new one when no more available
Do you know a thread_pool library allowing to implement the required behaviour?
http://sourceforge.net/projects/threadpool It looks like it's still being maintained. I've never really used it for anything proper, but it seems to do some of the things you're looking for. Regards, Darren