当前位置: 技术问答>linux和unix
UNIX下哪个函数/系统调用(不要命令)可以取得cpu信息?
来源: 互联网 发布时间:2015-10-09
本文导语: 类似于: Processors: Active: 1 Total: 1 ...
类似于:
Processors:
Active: 1
Total: 1
Clock Frequency: 1300 MHz
Machine Identification: 2656903183
Hardware Model: ia64 hp server rx2600
Kernel Width Support: 64
CPU Version: Intel(R) Itanium 2 Family Processor
CPU Model No: 1
CPU Revision: 5
Processors:
Active: 1
Total: 1
Clock Frequency: 1300 MHz
Machine Identification: 2656903183
Hardware Model: ia64 hp server rx2600
Kernel Width Support: 64
CPU Version: Intel(R) Itanium 2 Family Processor
CPU Model No: 1
CPU Revision: 5
|
pstat_get* 系列的函数,自己查一下具体要用哪一个吧
|
读文件/proc/cpuinfo