Help for this page

Select Code to Download


  1. or download this
    micha@laptop ~/prog/perl/test $ time ./threads_benchmark.pl
    
    ...
    sys     0m0.172s
    
    (resident memory 6.3MB)
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
    threadpool_shutdown();
    
    print "Exiting now, threads working: ",threadpool_threadsworking,"\n";
    
  3. or download this
    micha@laptop ~/prog/perl/test $ time ./threadpool.pl
    
    ...
    sys     0m0.024s
    
    (max res memory indefinite rising, 10MB)
    
  4. or download this
    #!/usr/bin/perl -w
    
    ...
            $t->join();
    }
    $_->join for @threads;
    
  5. or download this
    micha@laptop ~/prog/perl/test $ time ./thread_pool_benchmark.pl
    
    ...
    sys     0m0.048s
    
    15M res memory
    
  6. or download this
    #!/usr/bin/perl -w
    
    ...
    
    
    $p->shutdown();