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 prio
If you don't have access to some of these modules you can potentially do it in Windows with:
import os
def lowpriority():
""" Set the priority of the process to below-normal."""
os.system("wmic process where processid=\""+str(os.getpid())+"\" CALL setpriority \"below normal\"")
You can obviously distinguish OS types as with examples above for compatibility.