Relization based on my old ideas: Simultaneous alarms < 1 sec and resource control: CPU. These ideas was united and greatly improved, simplifyed and optimized.# this script will use 40% CPU instead of 100% use CPU 40; 1 while 1;
I will test it, create package and upload to CPAN. But I don't know best suited name for this package. Really, I think it's Right Thing to realize it in standart pragma 'less'. This pragma now unimplemented, and as far as I understand it should be realized in perl itself. I suppose to realize 'less CPU' my way in this pragma and later replace my solution to perl internal solution with same interface. The interface can look like this:
The problem is what there is no AUTHOR section in less.pm, so I don't know who should be contacted about this question. May be one of monks know his email? Or you think I should not touch 'less' pragma and release it in usual module with name .....?use less CPU => 40, memory => '30MB';
P.S. Maybe name 'limit' is more suited for this pragma than 'less'.
In reply to use less 'CPU' by powerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |