   Detecting how many cores a system has
  Is there a way to detect how many cores a CPU has (in a win32 system)?Thanks in advance :)   
  Not sure if Winapi has something for that, never used it in such way.GPUID instruction usually tells you everything you need to know about CPU, but its a bit tedious to milk the knowledge with it.http://linux.die.net/man/1/cpuid[Edit] Damn clipboard messed up...   ;  Windows has a GetLogicalProcessorInformation function which looks like it should do the trick.   ;  Boost has a fairly portable solution:boost::thread::hardware_concurrency()see http://www.boost.org/doc/libs/1_35_0/doc/html/thread/thread_management.html   