Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Alternatives for "sleepy" while loop

by walto (Pilgrim)
on Mar 18, 2008 at 04:39 UTC ( [id://674709]=note: print w/replies, xml ) Need Help??


in reply to Re: Alternatives for "sleepy" while loop
in thread Alternatives for "sleepy" while loop

Thanks for your answers.
I already changed my script to moritz suggestion. This is a much better approach and allows a more exact control for timing.

A script that can handle threads is the way it should go, but for this I must rewrite some other parts of the script regarding killing the running processes etc...

I do not know where I read about the memory and cpu consumption of sleep. Actually I googled around and could not verify my statement. So probably this is not true (Although I remember one of my scripts using quite a lot cpu or mem while sleeping, but this can also have other reasons).Anyway the alternatives are great and improved my script very much.

I searched CPAN before writing my script and could not find anything suitable. Schedule::At seems to do what I need. I will give it a second thought.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-29 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found