#include <unistd.h> int get_nprocs(void);
int get_nprocs_conf(void);
The get_nprocs() and get_nprocs_conf() functions are, respectively, equivalent to:
sysconf(_SC_NPROCESSORS_ONLN);
sysconf(_SC_NPROCESSORS_CONF);
The get_nprocs() function returns the number of available processors. The get_nprocs_conf() function returns the number of processors the operating system configured.
See attributes(5) for descriptions of the following attributes:
|
The get_nprocs() and get_nprocs_conf() functions are provided only as GNU/Linux compatibility interfaces.