in reply to Is fork() my answer to using dual-cpu?
The parent launches all the children, then exits.for my $x (1..$total_number_of_runs) { my $pid = fork; if (not defined $pid) { die("Unable to create child process: $!\n"); } exec("shell_script < $input_file") unless $pid; #thanks, bluto }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is fork() my answer to using dual-cpu?
by bluto (Curate) on Oct 25, 2005 at 19:12 UTC |