Help for this page

Select Code to Download


  1. or download this
    sub worker {
        ....
    ...
    ...
    
    my @workers = map threads->new( \&worker, ... ), 1 .. $WORKERS;
    
  2. or download this
    sub worker {
        ....
    ...
    ...
    
    my @workers = map threads->new( \&proxy, \&worker, ... ), 1 .. $WORKER
    +S;