This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author giampaolo.rodola
Recipients giampaolo.rodola, loewis, pitrou
Date 2010-12-28.01:46:48
SpamBayes Score 0.0002028705
Marked as misclassified No
Message-id <1293500810.54.0.0610321482452.issue10784@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-12-28 01:46:50giampaolo.rodolasetrecipients: + giampaolo.rodola, loewis, pitrou
2010-12-28 01:46:50giampaolo.rodolasetmessageid: <1293500810.54.0.0610321482452.issue10784@psf.upfronthosting.co.za>
2010-12-28 01:46:49giampaolo.rodolalinkissue10784 messages
2010-12-28 01:46:48giampaolo.rodolacreate