Boost logo

Boost Users :

Subject: Re: [Boost-users] Number of cores
From: Ruediger Berlich (ruediger.berlich_at_[hidden])
Date: 2009-07-26 06:56:30


Ups - thanks. Should have seen that myself.
Best Regards,
Ruediger

Sebastian Redl wrote:
> Ruediger Berlich wrote:
>> Hi there,
>>
>> is there a possibility in Boost to find out the number of
>> processor(-core)s on a local system in a platform-independent way ? I'd
>> like to start a corresponding number of threads.
>>
> boost::thread::hardware_concurrency()
>
> Sebastian


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