LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   No of CPUs on a machine (https://www.linuxquestions.org/questions/programming-9/no-of-cpus-on-a-machine-43311/)

rieta 01-29-2003 11:05 PM

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

moeminhtun 01-30-2003 02:22 AM

One way is that u can just read the "/proc/cpuinfo" file and filter the informations you need.

linuxlah 01-30-2003 09:15 PM

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.