in reply to Forking problem UPDATED
I was going to propose the parent populate the array, create a pipe, create N children, and do print PIPE "$_\n" for 0..$#array; so each child could read (atomically) the index to the next data to be processed.
But it looks like Parallel::ForkManager already pretty much does that for you so perhaps you should just use that.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Forking problem (manager)
by avi_learns_perl (Novice) on Mar 06, 2007 at 17:34 UTC | |
by ikegami (Patriarch) on Mar 06, 2007 at 18:33 UTC | |
by avi_learns_perl (Novice) on Mar 07, 2007 at 09:26 UTC | |
by ikegami (Patriarch) on Mar 07, 2007 at 16:08 UTC | |
by tye (Sage) on Mar 07, 2007 at 17:35 UTC | |
by ikegami (Patriarch) on Mar 07, 2007 at 18:28 UTC | |
by avi_learns_perl (Novice) on Mar 08, 2007 at 11:57 UTC |