how to get the number of CPUs?

Nix nix@esperi.demon.co.uk
Sat Jul 13 08:00:00 GMT 2002


On Sun, 7 Jul 2002, Cong yowled:
> Thank you, your code works for me!
> 
> But, when I do man sysconf on Linux, it show no infomation
> about _SC_NPROCESSORS_CONF as manpage on Solaris do. However, looking
> at <unistd.h>, they're there!

The manpage is not the canonical information source for the GNU C
library.

Try `info libc processor resources', or
`info libc --index-search=_SC_NPROCESSORS_CONF'.

-- 
`There's something satisfying about killing JWZ over and over again.'
                                        -- 1i, personal communication



More information about the Gcc-help mailing list