Help for this page

Select Code to Download


  1. or download this
        for( 1 .. NTHREADS ) {
            $Q->enqueue( scalar <FILE> );
            lock $pos;
            $pos = tell FILE;
        }
    
  2. or download this
    #! perl -slw
    use strict;
    ...
    }
    $Q->enqueue( (undef) x NTHREADS );
    $_->join for @threads;