int cpu_num = sysconf(_SC_NPPROCESSORS_CONF);