renice

JonPeirce jon at peirce.org.uk
Tue Jul 14 12:28:19 CEST 2009



Note that with os.nice you can only *decrease* priority. For increasing
priority you need to run;
os.system("sudo renice -n %s %s" % (new_nice, os.getpid()))
or simply set the nice level when you run python in the first place (you do
also need sudo for this):
sudo nice -n -15 python myScript.py

Jon
-- 
View this message in context: http://www.nabble.com/renice-tp13422771p24477000.html
Sent from the Python - python-list mailing list archive at Nabble.com.




More information about the Python-list mailing list