Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $start_sem->up( NUM_THREADS );
    
    $_->join for @t;
    
  2. or download this
    first, 0 0.634
    first, 2 0.639
    ...
    next,  1 0.732
    next,  3 0.732
    next,  2 0.732
    
  3. or download this
    use strict;
    use warnings;
    ...
    $start_sem->up( NUM_THREADS );
    
    $_->join for @t;
    
  4. or download this
    first, 1 0.698
    first, 2 0.702
    ...
    next,  1 0.757
    next,  0 0.757
    next,  2 0.757
    
  5. or download this
    use strict;
    use warnings;
    ...
    $barrier1->wait;
    
    $_->join for @t;
    
  6. or download this
    first, 0 0.630
    first, 1 0.630
    ...
    next,  0 0.723
    next,  1 0.723
    next,  2 0.723