$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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