- 论坛徽章:
- 0
|
在Red Hat Linux 4下, 我执行cat /proc/cpuinfo 的输出如下:
processor : 0
vendor_id : GenuineIntel
CPU family : 15
model : 2
model_name : Intel(R) Pentium(R) 4 CPU 2.40 GHZ
stepping : 9
cpu MHZ : 2412.553
cache size : 512KB
fdiv_bug : no
hlt_bug : no
foof_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse....
bogomips : 4767.74
并没有大家所说的"physical id" 以及 "core id"这些项。请问此时我该如何获取物理CPU数目。
另外我也需要在HP Unix, SUN Solaris, IBM AIX, Windows等平台实现相同的功能, 也欢迎大家给予相关的建议。
没有积分可以悬赏,非常抱歉! |
|