我如何检查系统是否在Asp .Net中空闲(不在网站中) [英] How I Check Whether System Idle Or Not In Asp .Net(Not In Website)

查看:57
本文介绍了我如何检查系统是否在Asp .Net中空闲(不在网站中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要信封一个应用程序,我必须检查系统是否空闲。

I need to dvelope one application where i have to check whether system is idle or not.

推荐答案

你无法真正检查系统是否空闲 - 可能是一个核心被完全占用而另一个核心无所事事。或者计算机可以运行背景互联网分布式应用程序,如在家折叠 [ ^ ]或 SETI在家 [< a href =http://setiathome.berkeley.edu/target =_ blanktitle =New Window> ^ ]并且在技术上同时忙碌和空闲! br />


您可以检查用户是否正在做任何事情:使用C#获取用户空闲时间 [ ^ ]或者您可以监控系统性能: http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter%28VS.80%29.aspx [<一个人f =http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter%28VS.80%29.aspxtarget =_ blanktitle =New Window> ^ ]但闲置是一个模糊的概念!
You can't really check if the "system is idle" - it could be that one core is fully occupied while the other(s) are doing nothing. Or the computer could be running a "background internet distributed application" like Folding at home[^] or SETI at home[^] and be technically both "Busy" and "Idle" at the same time!

You can check if the user is doing anything: Getting the user idle time with C#[^] or you can monitor system performance: http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter%28VS.80%29.aspx[^] but "idle" is a nebulous concept!


这篇关于我如何检查系统是否在Asp .Net中空闲(不在网站中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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