Standard C Library Functions get_nprocs(3C)
NAME
get_nprocs, get_nprocs_conf - get number of processors
SYNOPSIS
#include
int get_nprocs(void);
int get_nprocs_conf(void);
DESCRIPTION
The get_nprocs() and get_nprocs_conf() functions are,
respectively, equivalent to:sysconf(_SC_NPROCESSORS_ONLN);
sysconf(_SC_NPROCESSORS_CONF);
RETURN VALUES
The get_nprocs() function returns the number of available
processors. The get_nprocs_conf() function returns the
number of processors the operating system configured.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
SEE ALSO
sysconf(3C), attributes(5) NOTESThe get_nprocs() and get_nprocs_conf() functions are pro-
vided only as GNU/Linux compatibility interfaces.
SunOS 5.11 Last change: 11 Oct 2010 1