Help for this page

Select Code to Download


  1. or download this
    Write a Perl program that forks 5 child processes. The main process
    should handle SIGCHILD and restart any child processes that have exite
    +d.
    The child processes have a function called "doWork" that have a 
    "Your code here" comment.
    
  2. or download this
    use strict;
    use warnings;
    ...
        print "Child process $$ doing some work\n";
        sleep(10);
    }