Help for this page

Select Code to Download


  1. or download this
    # create the worker processes
    spawn task($barrier, $_) for 1..5;
    
  2. or download this
    MCE::Simple::_reap_joinable();
    do { MCE::Simple::_async_i('', \&task, $barrier, $_) } for 1..5;
    
  3. or download this
    use strict;
    use warnings;
    ...
    )->run();
    
    printf {*STDERR} "\nduration: %0.3f\n\n", time() - $start;