I am working with application written in python on windows 7, it needs calling process and setting the priority of the process to high, how can I increment or change the called process priority with python?
Asked
Active
Viewed 2,269 times
1
-
Is the parent process running as administrator? – Keith Dec 16 '12 at 09:56
-
yes it is running as administrator – Hani Dec 16 '12 at 11:44
-
1Why would being admin matter? And why are you running admin anyway? – David Heffernan Dec 16 '12 at 12:42
-
1Related: [Start child process with limited priority](http://stackoverflow.com/q/13799371/95735) – Piotr Dobrogost Dec 16 '12 at 12:52
-
I don't know if it matter or not, but the process is running admin because it need to access many critical resources – Hani Dec 16 '12 at 13:50
-
related: [http://stackoverflow.com/questions/10761057/windows-command-line-assign-high-priority-to-findstr-within-a-loop](http://stackoverflow.com/q/10761057/4279). You could use with `subprocess` module if you can't install `psutil` module that provides a more uniform api (`.nice`) – jfs Dec 16 '12 at 18:22
1 Answers
1
It seems likely that the solution lays in using the subprocess module
Drew Verlee
- 1,772
- 5
- 20
- 30
-
yes I have already used subprocess module in calling and working with the process, so I have thought it may be a way to increase the priority of the process. any way thanx for your help – Hani Dec 16 '12 at 13:27