I've written scripts that look at the load (/proc/loadavg under Linux) and sleep briefly until the load's below the upper limit. You might think about doing that instead of trying to limit yourself to a percentage of the CPU available.
In reply to Re: hogging N% of CPU ?
by talexb
in thread hogging N% of CPU ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |