KernelModeTime和UserModeTime的含义 [英] The meaning of KernelModeTime and UserModeTime

查看:446
本文介绍了KernelModeTime和UserModeTime的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定这是我提出问题的正确地方.如果没有,请指向正确的论坛.

I am not sure this is the right place for my question. If not, please point me to the right forum.

我需要使用VBscript文件来分析给定PC上CPU的使用情况.

I need to use a VBscript file to analyze the usage of the CPU on a given PC.

我从页面上复制了VBscript示例 http://technet.microsoft.com/zh-cn/library/ee176718.aspx (页面中的最新示例),我可以获取所有KernelModeTime和UserModeTime(WMI Win32_Process的属性)的值我PC上的进程.

I copied a VBscript sample from page http://technet.microsoft.com/en-us/library/ee176718.aspx (latest sample in the page) and I can get the values of KernelModeTime and UserModeTime (properties of WMI Win32_Process ) for all the processes on my PC.

有人可以解释一下我得到的结果是什么意思吗?使用什么规模?

Can anybody please explain what is the meaning of the result I get? What scale is used?

如果我将所有现有进程(包括系统空闲)的值相加,我将期望一个数字,例如1或10000000(1秒)或4(对于PC上的4个内核为1秒),而我得到一个对我来说毫无意义的电话号码.

If I sum the values for all the existing processes (including the system Idle) I would expect a number like 1 or 10000000 (1 second) or 4 (1 second for 4 cores on my PC) , while I get a number with no meaning for me.

有人可以解释WMI Win32_Process对象的KernelModeTime和UserModeTime属性返回的值的含义吗?

Can anybody please explain the meaning of the values returned by the KernelModeTime and UserModeTime properties of the WMI Win32_Process object?

致谢

Marius

推荐答案

我会发布到The Official Guys Scripting Forum !,因为这是一个VBScript/WMI问题,或者也许是主持人可以将其移至此处:

I would post to The Official Guys Scripting Forum!, since it's a VBScript/WMI question, or perhaps a moderator could move it there:

http://social.technet.microsoft.com/Forums/en-US/ITCG /threads

 


这篇关于KernelModeTime和UserModeTime的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆