Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Limit CPU usage for an application/process' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Limit CPU usage for an application/process
Authored by: matsw on Feb 02, '11 11:22:31AM

The script can be very much simplified (variable i is not needed):

while true
kill -SIGSTOP $pid
sleep $sleeptime
kill -SIGCONT $pid
sleep $runtime
echo -n $dot

[ Reply to This | # ]