Help for this page

Select Code to Download


  1. or download this
    foreach (@go_do_something){
      my $thr = threads->new(\&some_sub,$_);
      $thr -> detach();
    }
    
  2. or download this
    foreach (@go_do_something){
      $used_threads++;
      @thr_ll[$used_threads] = threads -> new(\&some_sub,$_);
      @thr_ll[$used_threads] -> detach();
    }