Help for this page

Select Code to Download


  1. or download this
    c:\test>junk
    
    ...
    tperl.exe                   2924                         0    173,516 
    +K
    Taken 8.761321 seconds
    
  2. or download this
    #! perl -slw
    use strict;
    ...
    printf "Taken %f seconds", time() - $start;
    
    $_->join for @threads;
    
  3. or download this
    #! perl -slw
    use strict;
    ...
    
    $_->join for @threads;
    
  4. or download this
    my( $Xthread ) = threads->create( { suspended => 1 }, \&Xthread );
    my( $Ythread ) = threads->create( { suspended => 1 }, \%Ythread );
    ...
    my( @Yresults ) = $Ythread->join;
     ...
    my( @Xresults ) = $Xthread->join;