Help for this page

Select Code to Download


  1. or download this
    foreach(@list){
    $th = threads->create("ping","$_");
    # $th->join;   # new thread is NOT created until join
                   # not what I want!
    }
    
  2. or download this
    foreach(@list){
        push @childs, threads->create("ping","$_");
    ...
    foreach $child (@childs){
        $child->join();
    }