Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to dvelope one application where i have to check whether system is idle or not.
Posted
Comments
Kornfeld Eliyahu Peter 23-Jul-14 4:12am    
What do you mean system is idle? Your application is running, so...
Richard MacCutchan 23-Jul-14 4:13am    
What does this have to do with ASP.NET?

1 solution

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!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900