Help for this page

Select Code to Download


  1. or download this
    # And maintain the population.
    while (1) {
    ...
            make_new_child();           # top up the child pool
        }
    }
    
  2. or download this
    # And maintain the population.
    while ((my $pid = waitpid(-1)) > 0) {
    ...
      delete $children{$pid};
      make_new_child()
    }