Help for this page

Select Code to Download


  1. or download this
    my @threads;
    for my $i (0..19) {
    ...
      $threads[$i]->detach;
      sleep 1;
    }
    
  2. or download this
    print "THREAD SPAWNED.\n";
    $thr1 = threads->new(\&mainsub,0);
    $thr1->detach;
    ...
    sleep 1;
    
    # ...