Help for this page

Select Code to Download


  1. or download this
    use threads;
    $| ++;
    ...
        eval(threads->self->join);#Waiting for Godot
        print "before return\n";#will not show up
    }
    
  2. or download this
    use threads;
    $| ++;
    ...
        }
        print "child thread stop\n";
    }
    
  3. or download this
    $| ++;
    if (($chld = fork()) == 0) {
    ...
       waitpid $chld, 0;
       print "parent exit\n";
    }
    
  4. or download this
    $| ++;
    waitpid $$, 0; #wait for Godot
    print "exit\n";