good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Alternatives for "sleepy" while loopby DACONTI (Scribe) |
on Mar 18, 2008 at 03:13 UTC ( [id://674700]=note: print w/replies, xml ) | Need Help?? |
Hi walto if you want to minimize os ressource consumption I think you are a bit on the wrong path What are you doing here in fact is a job scheding work. So if I would be in you I would just use system's provided ressources i.e. someting like 'at' I browsed for you at CPAN and found out: Schedule::At which seems to be os independent. I never tried it, but I would start from this approach. Perhaps it is precise enough for your purposes. Of course then you would need to store/retrieve back any runtime info. Because of this you would maybe pay a bit of performance on one side, on the other side you would however even free system's memory. Best Regs, Davide.
In Section
Seekers of Perl Wisdom
|
|