get_nprocs question
Andreas Jaeger
aj@suse.de
Tue Mar 16 06:23:00 GMT 2004
What exactly is the semantics of get_nprocs, the manual states:
The @code{get_nprocs} function returns the number of available processors.
Does available mean the number of all processors the kernel runs on?
Or does it mean the number of CPUs upon which the process and its
children will be permitted to execute?
In the latter case we can use the sched_getaffinity system call for
get_nprocs if it's available. If this is ok, I'll prepare a patch...
Andreas
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20040316/e6b1edb3/attachment.sig>
More information about the Libc-hacker
mailing list