Solved

Get current CPU Load and available free physical memeory

Posted on 2006-11-11
2
369 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
ID: 17922467
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
ID: 17925109
Cheers!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Chat Room 1 43
install app on other machine 13 32
Combine two datatables into one based on a value from second datatable 4 32
What .NET URL re-routing tool did I use? 2 37
Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

15 Experts available now in Live!

Get 1:1 Help Now