2020-08-08 19:45:46 +00:00
|
|
|
#include <stdio.h>
|
2021-06-29 11:19:44 +00:00
|
|
|
#include <sys/sysinfo.h>
|
2020-08-08 19:45:46 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
main(void)
|
|
|
|
{
|
2021-06-29 11:19:44 +00:00
|
|
|
int cores = get_nprocs_conf();
|
|
|
|
printf("%i\n", cores);
|
|
|
|
return 0;
|
2020-08-08 19:45:46 +00:00
|
|
|
}
|