[issue10784] os.getpriority() and os.setpriority()
Giampaolo Rodola'
report at bugs.python.org
Tue Dec 28 02:46:50 CET 2010
New submission from Giampaolo Rodola' <g.rodola at gmail.com>:
After having implemented a similar thing in psutil ( http://code.google.com/p/psutil/issues/detail?id=142 ) I decided to contribute a patch for Python which exposes getpriority() and setpriority() POSIX calls in the os module.
They can be used to get/set process niceness/priority in a fashion similar to os.nice() but extended to *all* processes instead of just os.getpid():
http://linux.die.net/man/2/setpriority
----------
assignee: giampaolo.rodola
keywords: patch
messages: 124751
nosy: giampaolo.rodola, loewis, pitrou
priority: normal
severity: normal
status: open
title: os.getpriority() and os.setpriority()
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10784>
_______________________________________
More information about the Python-bugs-list
mailing list