Is there an API to get the number of CPUs available in Linux? I mean, without using /proc/cpuinfo or any other sys-node file...
I\'ve found this implementation using
#include long number_of_processors = sysconf(_SC_NPROCESSORS_ONLN);