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