Boost logo

Boost Users :

Subject: Re: [Boost-users] Number of cores
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2009-07-26 02:39:01


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