No of CPUs on a machine
I need to detect the number of CPUs in a linux machine(Red Hat linux 6.1/6.2/7.1/7.2 ). Is there a programmatic way to do so ?
Please help.. Thanks and Regards, Rieta |
One way is that u can just read the "/proc/cpuinfo" file and filter the informations you need.
|
or you can do this "uname -p". This will tell your processor archs.
|
All times are GMT -5. The time now is 04:56 AM. |