.NETGURU
CPU Usage
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.performance.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

vedant 15
I want my application to be stable and should slow down if CPU usage is too
high.
How can I moniter CPU Usage %?

--
There are 10 types of people. Those who understand binary and those who dont.

Vedant Lath
Reply to this message...
 
    
Sriram Krishnan
Try one of the various performance counters

--
Sriram Krishnan
Microsoft Student Ambassador
http://www.dotnetjunkies.com/weblog/sriram

"vedant_15" <vedant(removethis)Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Eric Gunnerson [MS] (VIP)
If your goal is to not have your application use resources that other
processes might need, you can do this by lowering the priority of the
process. I think something like:

Process.GetCurrentProcess.PriorityClass = ProcesPriorityClass.BelowNormal;

will do what you want. You can view the priority in task manager by
selecting the process, right-clicking, and choosing "set priority".

If you're running on Win98, BelowNormal doesn't work, and you'd need to use
Idle instead.

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://weblogs.asp.net/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
"vedant_15" <vedant(removethis)Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
> I want my application to be stable and should slow down if CPU usage is
too
[Original message clipped]

Reply to this message...
 
 
System.Diagnostics.Process




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification