get_nprocs_conf

Returns the number of active processors on the host machine.

Library:LibC
Classification:Linux
Service:System Information

Syntax

  #include <sys/sysinfo.h> 
   
  int get_nprocs_conf ( void );
  

Return Values

Returns the number of active processors on the host machine. This function cannot fail.

Remarks

This is a GNU extension and has been included in the library to aid the porting of open source code to NetWare. On NetWare, this function returns the same value as the get_nprocs function.

See Also