Solved

Get current CPU Load and available free physical memeory

Posted on 2006-11-11
2
368 Views
Last Modified: 2008-02-01
Hi,

How can I get the current CPU load (i.e. available system idle time as percent) and also the level of free physical memory using C#?

Also:

Without any additional effort on my part (i.e. storing values over a short time series), is it possible to deliver both of these values as a mean average? I.e.:

"What was the average CPU load in the last X seconds?"
"What was the average level of free physical memory in the last X seconds?"


Thanks!
0
Comment
Question by:James_15
2 Comments
 
LVL 11

Accepted Solution

by:
Jase-Coder earned 500 total points
Comment Utility
in visual studio 2005 in your toolbox under components there is a component called: PerformanceCounter you can use that
0
 

Author Comment

by:James_15
Comment Utility
Cheers!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now