How to limit CPU usage in Python
Rolando Cañer Roblejo
rolando.caner at cnic.edu.cu
Thu Sep 20 11:12:44 EDT 2012
Hi all,
Is it possible for me to put a limit in the amount of processor usage (%
CPU) that my current python script is using? Is there any module useful
for this task? I saw Resource module but I think it is not the module I
am looking for. Some people recommend to use nice and cpulimit unix
tools, but those are external to python and I prefer a python solution.
I am working with Linux (Ubuntu 10.04).
Best regards.
More information about the Python-list
mailing list