GET_NPROCS(3C) | Standard C Library Functions | GET_NPROCS(3C) |
get_nprocs
,
get_nprocs_conf
— get number
of processors
#include
<unistd.h>
int
get_nprocs
(void);
int
get_nprocs_conf
(void);
The
get_nprocs
()
and
get_nprocs_conf
()
functions are provided for compatibility with other systems and are
equivalent to calling
sysconf
(_SC_NPROCESSORS_ONLN)
and
sysconf
(_SC_NPROCESSORS_CONF)
respectively.
The get_nprocs
() function returns the
number of processors that are currently online. The
get_nprocs_conf
() function returns the number of
processors that the operating system has configured.
processor_info(2), sysconf(3C), attributes(7), standards(7), psrinfo(8)
December 21, 2014 | OmniOS |