McA has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I want to spawn 1..n child processes in a way that the STDIN of the child is connected to one pipe file handle of the parent (writing to the child) and the STDOUT of the child is connected to a file handle of the parent talking results to the parent.
Is there a package out there supporting this kind of spawning and communicating. I know that you have to be careful not to get a deadlock with this kind of communication.
Backround for other solutions: I want to implement a process which grabs job tickets from database and dispatches them to 1..n worker scripts and then collecting the results. Probably there is also a ready to use solution out there.
Best regards
McA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search for module helping to spawn a filter like child process
by kielstirling (Scribe) on Mar 05, 2013 at 09:32 UTC | |
|
Re: Search for module helping to spawn a filter like child process
by McA (Priest) on Mar 06, 2013 at 07:32 UTC | |
by tmharish (Friar) on Mar 06, 2013 at 09:23 UTC |