$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] boost multithread use all cores in parallel ?
From: Igor R (boost.lists_at_[hidden])
Date: 2011-08-14 13:29:13
> How to make sure that a multithreaded C++ program is run by ALL cores on a
> multicore server to do computing in parallel physically (not logically).
>
> I have a multicore server, which has 24 CPUs, each of which has 6 cores.
>
> It is Intel Xeon X5650Â 2.67GHz
> cpu cores      : 6 (support 6 threads)
> cpu MHz        : 1596.000
>
> totally, I have 24 * 6 = 144 cores.
>
> I designed a multithreaded C++ program with boost/thread.
>
> How to make sure that my program is run by all 144 cores ?
It's OS thread scheduler who cares about that.
But your program has to have 144 threads to utilise all the 144 cores.