Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Im I forking properly ?

by flexvault (Monsignor)
on Apr 14, 2016 at 21:26 UTC ( #1160473=note: print w/replies, xml ) Need Help??


in reply to Im I forking properly ?

leostereo,

Since this works for you, everything may be Great!

However since this process is long-running, it might be better to pre-fork some number (maybe 8) of waiting children. Currently, you 'fork' for each message, and 'fork' uses a lot of computer power just to start.

If you 'Super Search' on 'pre-fork' you should find examples.

Use 'kill -0 $pid' to see if the child is *working*, and the parent can 'fork' another child is not.
Please note, this is not a trivial script, but once you learn how to use the technique, you'll be very glad/proud of your work!

Good Luck

Regards...Ed

"Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (None)
    As of 2022-01-26 06:25 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      In 2022, my preferred method to securely store passwords is:












      Results (69 votes). Check out past polls.

      Notices?