问题描述
在Windows XP专业版SP2下,是否有任何API允许我的程序以
来衡量它在$ b上强加的CPU负载(百分比) $ b处理器?
Are there any APIs that, under Windows XP Pro SP2, allow my program to
measure how much CPU load (in percentage) it is imposing on the
processor?
我想监视程序的CPU利用率,如果CPU利用率达到99%,我想重启我的程序?
I would like to monitor my program for CPU utilization, if the CPU utilization reaches at 99%, I want to restart my program?
是否有任何脚本/作业预定示例可用于执行上述任务?
Is there any script /job scheduled examples available to perform above task?
谢谢,
Neel
推荐答案
是的,几乎没有办法监控CPU的状态。
Yes, there are few ways to monitor a status of the CPU.
首先,最快的方法是打开任务管理器(右键单击"开始"菜单)。
First, and the quickest way is open Task Manager (right click on the Start Menu).
其次,更多提前是安装ProcessXP,链接如下:
Second, more advance is to install ProcessXP, link below:
这是ve很好的工具,用于监控每个进程和正在使用的CPU。
It is very good tools, to monitor each process and CPU in use.
Bart
这篇关于如何获取特定进程的CPU利用率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!