English 中文(简体)
CPU-Z/HWMonitor等方案如何监测?
原标题:How do programs like CPU-Z / HWMonitor monitor?

So this has been something that has been bugging me for a while.
How do programs such as CPU-Z actually monitor things such as voltage and frequency? I am by no means a very experienced programmer, but things that seem complicated always interest me.

Things that I have used, WMI for example, seem to provide a snapshot, and are inaccurate. CPU frequency doesn t change, and voltage is rounded to two digits (e.g. anything from 1.1 to 1.199 becomes 1.1).

I would expect that some sort of driver has been written, to grant lower-level access, but Googling seems to reveal nothing on how these programs work.

If anyone could enlighten me, and possible give a code example (if it is not too difficult), I would be grateful. Thanks.

最佳回答

它最有可能是针对BIOS或CBOet的低水平方案规划。 你可能不得不在英特网或阿拉伯千年发展目标网站上找到类似文件。

问题回答

the voltage can be read with RDMSR instruction(index 0x198),you can check the 64-ia-32-architectures-software-developer-manual for details.you may need the library winring0, visual studio doesn t support RDMSR instruction.you can google winring0 to download the library.the core voltage=EBX[bit0-bit15]*(float)1/(2^12). I tried but haven t got the right frequency yet. 64-ia-32-architectures-software-developer-manual





相关问题
CPU检查 C#

是否有任何人知道如何从C#中检查CPU是否支持人口计算?

Using Java to retrieve the CPU Usage for Window s Processes

I am looking for a Java solution to finding the CPU usage for a running process in Windows. After looking around the web, there seems to be little information on a solution in Java. Keep in mind, I am ...

How can I do a CPU cache flush in x86 Windows?

I am interested in forcing a CPU cache flush in Windows (for benchmarking reasons, I want to emulate starting with no data in CPU cache), preferably a basic C implementation or Win32 call. Is there a ...

How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

Optimal number of threads per core

Let s say I have a 4-core CPU, and I want to run some process in the minimum amount of time. The process is ideally parallelizable, so I can run chunks of it on an infinite number of threads and each ...

Diagnosing runaway CPU in a .Net production application

Does anyone know of a tool that can help me figure out why we are seeing runaway CPU in a managed app? What I am not looking for: Process explorer, it has this awesome feature that lets you see CPU ...

热门标签