Erm, perhaps you'd want to look into BSD::Resource, which will let the OS do more of the monitoring rather than polling yourself (at least that's what resource control: CPU looks to be doing).
Not that a more pragmatic interface than setrlimit would be a bad thing.
In reply to Re: use less 'CPU'
by Fletch
in thread use less 'CPU'
by powerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |