Bloody Brilliant

12 AM March 3, 2005

Garth Kidd has been messing with Windows thread priorities from Python. He writes,

It’s easy to fire up Task Manager to lower the process priority, but I much prefer to automate it so I looked for a way for Python to adjust its own priority. I couldn’t find anything in win32all to do the job, so I did it the “hard” way: a quick Google search for process priority told me the entry point for the API, and ctypes made it trivial to call it…

Excellent. I have to do that later this week, and my first stop was going to be win32all too. Thanks for sharing, Garth.

By alang | # | Comments (0)
(Posted to Python)

Comments

Add Comment




(Not displayed)






(Leave blank line between paragraphs. URLs converted to links. HTML stripped. Indented source code will be formatted with <pre> tags.)




© 2003-2006 Alan Green