use threads; my @counters = map async( sub{ system 'counts.sh'; } ), 1 .. 8; my @staters = map async( sub{ system 'stats.sh'; } ), 1 .. 8; $_->join for @counters, @staters;
In reply to Re: loop over to utilize all cpus
by BrowserUk
in thread loop over to utilize all cpus
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |