Boost logo

Boost Users :

From: Zeljko Vrba (zvrba_at_[hidden])
Date: 2007-11-23 12:42:15


On Fri, Nov 23, 2007 at 02:34:27PM +0100, misiu wrote:
>
> I've developed small application which has a few threads. So far I'm
> using only single CPU (one core) and my question is: what will happen if
> I'm using more CPUs (or cores)? Whether threads will be automatically
> executed on different CPUs in parallel or not? If not what is a solution
> to run them in parallel?
>
The OS scheduler decides how threads are distributed across CPUs (and when
they are run). On a quad-core machine, your program may at any given time
use from 0 to all 4 CPUs (provided you have >= 4 threads), depending on
other active applications and the current system load.


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