So I try this on windows 8.1:
start /low cmd
And I get cmd process with low priority. But when I do:
start /realtime cmd
I get new cmd process with high priority.
Is there a way to get realtime without setting it manually? Also, can I somehow set desired priority from the code of my application, maybe WinApi or something?
It works when you are executing start
as an administrator.
Technically, you need the SeIncreaseBasePriorityPrivilege
, which an administrator normally has.
If you don't, it looks like albeit I couldn't find any documentation about that fact, that you are silently reverted to a priority that is still viable with the calling account.
I doubt that Win32 will help, as the same restrictions surely apply.