Hi, Does Boost have any thread-pooling classes? I'm thinking something that allows you to weight tasks perhaps by expected computational time or other random things. If not, can someone generously point me to some? Preferably some that work with boost threads. I've found http://threadpool.sf.net and I am currently looking at it. Thanks, Sohail
Hello Sohail, take a look at defer library in the vault (section 'Concurrent Programming'). Oliver
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Sohail Somani Sent: Wednesday, November 01, 2006 8:05 PM To: boost-users@lists.boost.org Subject: [Boost-users] Thread pool
Hi,
Does Boost have any thread-pooling classes? I'm thinking something that allows you to weight tasks perhaps by expected computational time or other random things. If not, can someone generously point me to some? Preferably some that work with boost threads. I've found http://threadpool.sf.net and I am currently looking at it.
Thanks,
Sohail _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi Sohail, Does Boost have any thread-pooling classes? I'm thinking something that
allows you to weight tasks perhaps by expected computational time or
It's possible with threadpool.sf.net: If you are satisfied with statically weighted tasks you could use prioritized tasks (boost::threadpool::prio_task_func). Otherwise you have to write your own scheduler which updates the weights / priorities of your tasks. Writing a scheduler is fairly simple. Please take a look at the default task schedulers. Best regards, Philipp
participants (3)
-
Oliver.Kowalke@qimonda.com
-
Philipp Henkel
-
Sohail Somani