pthread_num_processors_np – get the number of processors (CPUs) in use by the process
#include <pthread.h>
int pthread_num_processors_np(void);
pthread_num_processors_np returns the number of processors in the system. This implementation actually returns the number of processors available to the process, which can be a lower number than the system's number, depending on the process's affinity mask.
None.
pthread_num_processors_np returns the number of processors currently available to the process.
None.
Ross Johnson for use with Pthreads-w32.