cpu usage limit

Markus Franz mail at markus-franz.de
Fri May 27 11:54:15 EDT 2005


> Are you looping during a cpu intensive task? If so, make it sleep a bit 
> like this:
> 
> for x in cpu_task:
>     time.sleep(0.5)
>     do(x)

No, I don't use an intensive loop. I have about 1200 lines of code 
inside a process - is there nothing like

xyz.setlimit(xyz.cpu, 0.30)

???

Thank.
Markus



More information about the Python-list mailing list