I’ve got a Python program that does time-consuming computations. Since it uses high CPU, and I want my system to remain responsive, I’d like the program to change its priority to below-normal.
I found this:
Set Process Priority In Windows – ActiveState
But I’m looking for a cross-platform solution.
Here’s the solution I’m using to set my process to below-normal priority:
lowpriority.pyTested on Python 2.6 on Windows and Linux.