S
S
Sergey Polyntsev2014-02-14 17:49:45
Processors
Sergey Polyntsev, 2014-02-14 17:49:45

How to programmatically detect CPU and memory usage?

How can I determine the load of the Central Processor and memory? For example, in the Windows Task Manager, you can see how much the processor and RAM are loaded. I did not find in MSDN how to define such information. I would like to write a program either in C++ or C#.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2014-02-14
@The_Chemis

Dig around here if you need accuracy. True, I don’t know if the userspace measures the load of the CPU or the core there.

O
Oleg Prilepa, 2014-02-14
@OAPrilepa

I don’t know how relevant the information is, but there seems to be an example of a function:
www.rsdn.ru/forum/winapi/1282671.all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question