S
S
Stepan Gervik2019-02-09 16:12:32
C++ / C#
Stepan Gervik, 2019-02-09 16:12:32

How not to load the system?

Good afternoon! There is an application that runs x number of processes. But you need to make sure that the number of processes automatically adjusts to the performance of the computer. That is, load the processor, for example, no more than 50%.
All this needs to be implemented in C#. How can i do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
edward_freedom, 2019-02-09
@edward_freedom

In the task, specify how many processors to load
https://docs.microsoft.com/en-us/dotnet/api/system...

R
Ruslan Fedoseenko, 2019-02-10
@ruslanfedoseenko

If there are sources of other applications that you run, then they can use such a mechanism as performance counter. In the original application, you hook into these counters and monitor them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question