On Jan 4, 2008, at 11:36 PM, M. Edward (Ed) Borasky wrote:

> If you're willing to sacrifice portability away from Linux, I can give
> you some quick-and-dirty code that will go directly into /proc and
> snapshot this once every five minutes.

I'd love to see that code!

But what I'm actually trying to do is to actually _limit_ the CPU  
usage from ruby - not shut it down if it uses to much.

I want to teach the duck the trick, not punish for doing it wrong!

IE, make it so all my programs never use more than 15% of my CPU.

Thanks,
Ari