Start process in realtime priority

3

This is a follow-up on this question

I need to start a process with the realtime priority.

start "my_script.py" /realtime "Z:\location\of\python\script"

doesn't result in realtime priority. It sets it to high. Both commands /high and /realtime do the same.

why doesn't it work?

task manager screenshot

Valentyn

Posted 2018-06-05T22:30:52.640

Reputation: 199

Does your account have permission to run at Realtime? See here: https://stackoverflow.com/questions/36009502/how-to-start-executable-with-realtime-priority

– music2myear – 2018-06-05T22:39:13.137

Indeed I wasn't running the command line as administrator. You can post it as an answer. – Valentyn – 2018-06-05T22:47:34.930

Answers

3

Normal users only have permissions to elevate as far as /high. They do not have the ability to raise a processes priority to /realtime.

In order to raise a processes priority to /realtime one must have administrative rights and use these for the elevation.

More information: https://stackoverflow.com/questions/36009502/how-to-start-executable-with-realtime-priority

music2myear

Posted 2018-06-05T22:30:52.640

Reputation: 34 957