avi_learns_perl has asked for the wisdom of the Perl Monks concerning the following question:
I am pretty confused about perl forks...I am pretty new to perl so please be gentle :) ..... i shall define my problem. I need to call three different systems in a cluster all of which together need to execute n number of iterations of a single process individually and have different input data. They need to run simultaneously and without repetitions. ex:
P.S. Here if system 2 finishes first then the next data in array should be sent to system 2. and no system should EVER be idle till no input data is remaining.for(i=0;i<n;;) { execute command in system 1 input data is array[i]; execute command in system 2 input data is array[i+1]; execute command in system 3 input data is array[i+2]; i+3; }
PLEASE SMS (Save My Soul)
Phew....If any queries or this seems disastrously complicated please let me know..I have been stuck at this point for over two days...and am looking for the monks to shed light for this disheartened soul..:(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Forking problem UPDATED
by Moron (Curate) on Mar 06, 2007 at 13:07 UTC | |
|
Re: Forking problem (manager)
by tye (Sage) on Mar 06, 2007 at 16:32 UTC | |
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 | |
| |
|
Re: Forking problem UPDATED
by kyle (Abbot) on Mar 06, 2007 at 13:08 UTC | |
|
Re: Forking problem UPDATED
by avi_learns_perl (Novice) on Mar 06, 2007 at 13:11 UTC | |
by Moron (Curate) on Mar 06, 2007 at 13:19 UTC | |
by avi_learns_perl (Novice) on Mar 06, 2007 at 14:05 UTC | |
by kyle (Abbot) on Mar 06, 2007 at 14:29 UTC | |
by avi_learns_perl (Novice) on Mar 06, 2007 at 13:33 UTC | |
by Moron (Curate) on Mar 06, 2007 at 13:40 UTC |