Closed GoogleCodeExporter closed 8 years ago
Implemented in r855 and r856.
I added a new _psutil_posix.c module which is invoked also on Linux for now.
We'll see later whether using the ctypes variant.
Original comment by g.rodola
on 25 Dec 2010 at 9:17
On Windows this is possible by using GetPriorityClass and SetPriorityClass
functions:
http://msdn.microsoft.com/en-us/library/ms686219(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/ms683211(v=vs.85).aspx
We'll also have to expose all the *_PRIORITY_CLASS constants, presumably
accessible as psutil.*_PRIORITY_CLASS.
Original comment by g.rodola
on 25 Dec 2010 at 9:46
Original comment by g.rodola
on 25 Dec 2010 at 9:46
Implemented on Windows in r861.
*_PRIORITY_CLASS constants are defined at psutil module level.
I wonder if it is a good idea to rename this as "priority" rather than "nice".
For Windows it would definitively make sense but on UNIX I'm not sure whether
there's a difference between the two terms.
Maybe provide both names making Process.priority be an alias for Process.nice?
Original comment by g.rodola
on 27 Dec 2010 at 12:37
Python in other instances tends to side with the UNIX model and adapt Windows
to it rather than the other way around. For example stat() in Python even
though not all fields are available/relevant on Windows, or our use of kill()
rather than TerminateProcess() etc.
I suggest sticking with "nice" since it's the terminology for every other
platform except windows and priority is the same concept anyway.
Original comment by jlo...@gmail.com
on 27 Dec 2010 at 7:54
Original comment by g.rodola
on 20 Mar 2011 at 9:55
Original comment by g.rodola
on 9 Jun 2011 at 10:33
[deleted comment]
[deleted comment]
Updated csets after the SVN -> Mercurial migration:
r855 == revision d4a210bfdf95
r861 == revision f818d19e5160
Original comment by g.rodola
on 2 Mar 2013 at 11:57
Original issue reported on code.google.com by
g.rodola
on 25 Dec 2010 at 5:45