Help for this page

Select Code to Download


  1. or download this
        my @running = threads->list(threads::running);
        my @joinable = threads->list(threads::joinable);
    
  2. or download this
    foreach my $thr ( threads -> list ) { 
       print $thr. " is running\n" if $thr -> is_running(); 
       print $thr. " is joinable\n" if $thr -> is_joinable(); 
    }