> Sorry yes, via a system call.  I had thought of 
> fopen("/proc/cpuinfo") | !strcmp("processor", blah) | wc
> but i was looking for something more Posix/gnu-centric 
> like getnumprocessors()

glibc 2.1 at least supports the sysconf() request for this


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

Reply via email to