1 #include<stdlib.h>
2 #include<stdio.h>
3 #include<unistd.h>
4 int main()
5 {
6 int num = 0;
7 num = sysconf(_SC_NPROCESSORS_CONF);
8 printf("The number of cpu is %d/n",num);
9 return 0;
10 }
如何查看系统中有多少个处理器
最新推荐文章于 2024-07-28 18:39:06 发布