Boost logo

Boost Users :

Subject: Re: [Boost-users] [thread_group] How to limit the number of simultaneous threads
From: Igor R (boost.lists_at_[hidden])
Date: 2012-07-16 10:35:42


> I would like to add some multithreading in my application. Suppose I have a
> set of m tasks to do, and I want to limit the number of simultaneous threads
> to n. I have really no idea on how to do this and would like to have some
> hints. Could you help me?

thread_group is just a convenient container for thread objects.
What you need is thread pool, like this: http://threadpool.sourceforge.net/


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net