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..:(
In reply to Forking problem UPDATED by avi_learns_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |