How to find the number of CPUs?
Posted: 29 Mar 2006, 20:58
Hi all,
Is there any simple way for a C/C++ program to find the number of CPUs on the computer it is running? If possible, I would prefer a cross-platform solution, but if the code is not too messy I would also be happy with separate solutions for Unix and Windows.
Tord
Is there any simple way for a C/C++ program to find the number of CPUs on the computer it is running? If possible, I would prefer a cross-platform solution, but if the code is not too messy I would also be happy with separate solutions for Unix and Windows.
Tord