> > > Dudes and/or Dudettes:
> > >
> > > I know i've seen (in normal user space) a call to determine the number
> > > of CPUs in a system but i can't find it now that i need it.
> >
If you use glibc 2, you can use
#include <unistd.h>
num_of_cpu_conf = sysconf (_SC_NPROCESSORS_CONF);
num_of_cpu_online = sysconf (_SC_NPROCESSORS_ONLN);
H.J.
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]
- Programming questions (user space) Dick Balaska
- Re: Programming questions (user space) Robert G. Brown
- Re: Programming questions (user space) Dick Balaska
- Re: Programming questions (user space) Borries Demeler
- Re: Programming questions (user space) Rui Sousa
