什么是CPU_STATE_MAX?
CPU_STATE_MAX
宏是什么以及它的用途是什么?我找不到任何描述性/相关的谷歌结果或手册页。
我使用的是 Mac OSX Snowleopard,如果这有什么区别的话。
What is the CPU_STATE_MAX
macro and what is it used for? I couldn't find any descriptive/relevant google results or man pages.
I am on Mac OSX Snowleopard, if that makes any difference.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此--it对应于
machine.h
标头中定义的 CPU 状态数。然后,这些不同的状态用于索引有关 CPU 状态的不同信息,这些信息可能因 CPU 状态(空闲、“正常”等)而异。See this--it corresponds to the number of CPU states defined in the
machine.h
header. These different states are then used to index different pieces of information about the CPU state, which can differ by CPU state--idle, 'nice', etc.