23 Aug
2010
23 Aug
'10
1:46 p.m.
Am 23.08.2010 um 15:02 schrieb Lars Viklund:
On Mon, Aug 23, 2010 at 02:57:49PM +0200, Kraus Philipp wrote:
can I determine how many physical cpu and cores are installed in a system with the boost lib?
There's thread::hardware_concurrency() which will give you a count of hardware threads.
Personally, if I wanted more specific knowledge, I'd use /proc on Linux, WMI on Windows, etc., conditionally compiled.
[1] http://www.boost.org/doc/libs/1_44_0/doc/html/thread/thread_management.html#...
Thank. I need exactlly this number