B
Bart Van der Donck
Hello,
My perl program is running in the background and should not exceed too
much of the machine's resources.
Therefore I imagine a shebang like this:
#!perl -AllowThisProcessNoMoreThan15%OfAvailableResources
# code starts
Or
#!perl
use Run::NiceMode("max 15%");
# code starts
Where the 15% would be the CPU-column in the UNIX 'top' program.
I am aware of buffering/allowance methods on the OS-level, but I
couldn't find one that can be used for a specific Perl script. Is this
possible at all ? Maybe material for PerlFAQ 3.16, too.
Thanks,
My perl program is running in the background and should not exceed too
much of the machine's resources.
Therefore I imagine a shebang like this:
#!perl -AllowThisProcessNoMoreThan15%OfAvailableResources
# code starts
Or
#!perl
use Run::NiceMode("max 15%");
# code starts
Where the 15% would be the CPU-column in the UNIX 'top' program.
I am aware of buffering/allowance methods on the OS-level, but I
couldn't find one that can be used for a specific Perl script. Is this
possible at all ? Maybe material for PerlFAQ 3.16, too.
Thanks,