任务管理器中的CPU时间到底是什么? [英] What exactly is CPU Time in task manager?
问题描述
我有一些Windows服务中托管的WCF服务。昨天我看了任务管理器,发现Windows服务进程的CPU时间超过5小时,而其他所有进程的大多数时间都为0。
I have some WCF services that are hosted in a windows service. Yesterday I looked at Task Manager and noticed that the CPU time for my windows service process was over 5 hours, while the majority of all other processes were at 0.
怎么办
我应该担心CPU时间超过5小时吗?
Should I be concerned that the CPU Time was 5+ hours?
推荐答案
CPU time 自此过程开始以来(在Windows中:链接到 Technet文章。 )
CPU time is an indication of how much processing time that the process has used since the process has started (in Windows: link to a Technet article.)
基本上是这样计算的:
CPU Time of Process = Process Uptime * CPU Utilization of Process
的CPU利用率,例如,如果该进程已经运行了5个小时,而CPU时间是5个小时,则意味着该进程已经在使用100%的CPU资源。这可能是好事,也可能是坏事,这取决于您是想保持较低的资源消耗,还是要利用系统的全部功能。
For example, if the process has been running for 5 hours and the CPU time is 5 hours, then that means that the process has been utilizing 100% of the resources of the CPU. This may either be a good or bad thing depending on whether you want to keep resource consumption low, or want to utilize the entire power of the system.
使用50%的CPU资源并运行10个小时,那么CPU时间将为5个小时。
If the process was using 50% of the CPU's resource and running for 10 hours, then the CPU time will be 5 hours.
这篇关于任务管理器中的CPU时间到底是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!