On Sun, Mar 05, 2000 at 10:41:40AM -0800, Ken Chen wrote:
> Is there a system function to get number of running
> CPU on current system.
> 

In glibc 2, you can use

#include <unistd.h>

sysconf (_SC_NPROCESSORS_CONF)

and

sysconf (_SC_NPROCESSORS_ONLN)


H.J.
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to