Help for this page

Select Code to Download


  1. or download this
    for my $i ( 0 .. 50 ) {
        queueProcessRequest( $i );
    }
    
  2. or download this
        while (my $job = $dispatcher->dequeue()) {
    
  3. or download this
    #!/usr/bin/perl -lw
    use strict;
    ...
        queueProcessRequest( $i );
    }
    endThreadedOperation();
    
  4. or download this
    #!/usr/bin/perl -lw
    use strict;
    ...
    $Q->nq( $_ ) for 1 .. 50;
    $Q->nq( (undef) x $T );
    $_->join for @threads;