Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
    print "Main done";
    
    $_->join for @pool
    
  2. or download this
    c:\test>TQpool -WORKERS=4 -ITEMS=10
    Thread 1 started
    ...
    Thread 2 done
    Main done
    Thread 4 done