文件名称:CheckMultiprocessor
- 所属分类:
- 系统编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 62kb
- 下载次数:
- 0次
- 提 供 者:
- 雪*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
vc6.0 程序
展示了如何用WMI的方法获取CUP的使用率
重点在于获取多个CPU或者多核不同的使用率,在现在CPU多核时代这点很重要-Ever since I saw Performance application on Windows 2000, I wondered if there is a way/Windows API to programmatically determine CPU usage for each of the individual CPUs in a multi-processor machine. Though there are many articles for getting the CPU usage, none helped when it came to multi-processor machines.
After some digging in MSDN, I could find WMI (Windows Management and Instrumentation) has a few performance counter classes. I chose to use the Win32_PerfRawData_PerfOS_Processor class in this case as it is supported on Windows 2000 onwards.
展示了如何用WMI的方法获取CUP的使用率
重点在于获取多个CPU或者多核不同的使用率,在现在CPU多核时代这点很重要-Ever since I saw Performance application on Windows 2000, I wondered if there is a way/Windows API to programmatically determine CPU usage for each of the individual CPUs in a multi-processor machine. Though there are many articles for getting the CPU usage, none helped when it came to multi-processor machines.
After some digging in MSDN, I could find WMI (Windows Management and Instrumentation) has a few performance counter classes. I chose to use the Win32_PerfRawData_PerfOS_Processor class in this case as it is supported on Windows 2000 onwards.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
CheckMultiprocessor
...................\Check
...................\.....\Check.cpp
...................\.....\Check.dsp
...................\.....\Check.dsw
...................\.....\ReadMe.txt
...................\.....\Release
...................\.....\.......\Check.exe
...................\.....\StdAfx.cpp
...................\.....\StdAfx.h
...................\Check
...................\.....\Check.cpp
...................\.....\Check.dsp
...................\.....\Check.dsw
...................\.....\ReadMe.txt
...................\.....\Release
...................\.....\.......\Check.exe
...................\.....\StdAfx.cpp
...................\.....\StdAfx.h