#include "sys/sysinfo.h" printf("system cpu num is %d\n", get_nprocs_conf()); printf("system enable num is %d\n", get_nprocs());