Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Pre-fork and Re-use a child process

by rustic (Monk)
on Jan 26, 2012 at 11:00 UTC ( #950071=perlquestion: print w/replies, xml ) Need Help??
rustic has asked for the wisdom of the Perl Monks concerning the following question:

Hello, fellow monks. I'm following a column of merlyn Doing many things, like pings on how to run and fork processes and at the end there's an interesting statement I'm especially interested in: "One improvement to this program might be to pre-fork and re-use the children, using some sort of IPC (pipes or sockets) to communicate additional tasks to perform as each task completes". The idea is to run some other command upon the results of a ping test. Now, I know the perlipc documentation, but laziness is also a virtue of mine. So, I'd be grateful if somebody of you may point me to some nice examples or maybe already developed a working solution.

Replies are listed 'Best First'.
Re: Pre-fork and Re-use a child process
by Anonymous Monk on Jan 26, 2012 at 11:39 UTC
Re: Pre-fork and Re-use a child process
by zentara (Archbishop) on Jan 26, 2012 at 19:17 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://950071]
Approved by moritz
marioroy Updated Re^3: RFC: Compiling Gtk+ stack on windows with strawberry perl. Also tested Gtk2 installation on Strawberry Perl v5.22.3.1. Installing Tk and Tk::Zinc works fine on Perl v5.22.3.1.
[marioroy]: Hi karlgoethebier. Folks can comment feasibly if asking the review via a meditation (imho).

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2017-09-24 09:36 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (273 votes). Check out past polls.