Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: writing looped programs

by count0 (Friar)
on Jan 28, 2002 at 23:24 UTC ( #142158=note: print w/ replies, xml ) Need Help??


in reply to writing looped programs

However, I have been told that this is very inefficient and that it would be better to load it into memory and run it as a loop.
I'd just like to post my disagreement with your source ;)

Task scheduling is, and should be IMO, left to the operating system. This is what cron (and Windows task scheduler, and <insert examples from other OSs here>) was made for, and it does a great job of it.

As far as possible inefficiency.. this is just plain untrue. The cron daemon is running on nearly any POSIX system (unless the bofh is in a masochistic mood ;), so there is really no overhead, aside from the invocation of perl at each run.


Comment on Re: writing looped programs

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://142158]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (16)
As of 2015-07-07 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (90 votes), past polls