This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to get the number of CPUs?
- From: Bharathi S <bharathi at lantana dot tenet dot res dot in>
- To: Cong <vo dot chi dot cong at is dot titech dot ac dot jp>
- Cc: GNC GCC <gcc-help at gcc dot gnu dot org>
- Date: Thu, 4 Jul 2002 17:59:01 +0530 (IST)
- Subject: Re: how to get the number of CPUs?
On Thu, 4 Jul 2002, Cong wrote:
> number of CPUs on each of them. So I want to get the number of CPUs
cpu info is avilable in /proc/cpuinfo file
if processor is 0 then No. of CPU is 1
Explore /proc dir you will more idea :)
Bye,
--
--==| Bharathi S | BSB-364 DONLab | IIT-Madras |==--
Friendship is enthroned on the strength
That always helps with utmost warmth.
*In Tirukkural of Holy Tamil poet Tiruvalluvar.