in reply to forkManager PID 1 less than top
Perhaps you code differs from this. Can you simplify it to proof-of-concept and post here?use Parallel::ForkManager; $pm = new Parallel::ForkManager(100); my @all_data = qw/1/; foreach $data (@all_data) { # Forks and returns the pid for the child: my $pid = $pm->start; print "PID $pid\n"; $pid and next; print "$data", "\n"; while(){}; # 100% CPU $pm->finish; # Terminates the child process } $pm->wait_all_children;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: forkManager PID 1 less than top
by MAR99 (Initiate) on Oct 02, 2013 at 13:08 UTC | |
by MAR99 (Initiate) on Oct 02, 2013 at 15:01 UTC | |
by vsespb (Chaplain) on Oct 02, 2013 at 17:43 UTC | |
by MAR99 (Initiate) on Oct 03, 2013 at 17:06 UTC | |
by vsespb (Chaplain) on Oct 03, 2013 at 17:32 UTC | |
by ikegami (Patriarch) on Oct 05, 2013 at 00:54 UTC | |
by vsespb (Chaplain) on Oct 13, 2013 at 18:59 UTC | |
by ikegami (Patriarch) on Oct 14, 2013 at 04:49 UTC | |
|