From: Eran Guendelman <eran@sidefx.com>
To: axp-list@redhat.com
Subject: get_nprocs() returns 0 (number of CPUs)
Date: Wed, 8 Sep 1999 13:22:29 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.10.9909081316220.22168-100000@iceland.sidefx.com> (raw)
Hi.
I am running RH6.0 on a dual alpha machine. A program I am writing needs
to know the number of CPUs. I tried get_procs_conf() and get_nprocs(),
but they both return 0. Is this a known bug? Is there a fix?
/proc/cpuinfo clearly states "cpus detected : 2". I know, I *could* parse
this file to get the number of processors, but I'd rather not do it that
way. Also, the program "top" doesn't say anything about having 2 CPUs.
Is it possibly using these same system calls and not detecting the two
CPUs?
Thanks for any help.
next reply other threads:[~1999-09-08 17:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-08 17:22 Eran Guendelman [this message]
1999-09-08 19:47 ` get_nprocs() returns 0 (number of CPUs) B. James Phillippe
1999-09-08 20:31 ` Eran Guendelman
1999-09-08 21:23 ` Suyudi Koeswanto
1999-09-08 22:01 ` Eran Guendelman
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox