Boost logo

Boost Users :

From: Damien Hocking (damien_at_[hidden])
Date: 2007-11-23 12:52:56


This is somewhat off-topic, but if you want automatic concurrency and
thread safety, you should look at something like OpenMP or Intels' new
Threading Building Blocks library. Both of these play nicely with Boost.

Zeljko Vrba wrote:
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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