How can I modify the BasePriority process using .NET?

I am writing an application in which the user can change the application (process) of Basepriority

How to do it in .NET?

It seems that I can only “get” the Basepriority value, but I cannot “set” it.

+3
source share
1 answer

Found

    System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.RealTime;

I looked at System.Diagnostics.Process.GetCurrentProcess ().BasePrioritythat just for reading

(I know llama ...)

+4
source

Source: https://habr.com/ru/post/1728704/


All Articles