And get 5 working threads. How to write similar code using Coro (http://search.cpan.org/~mlehmann/Coro-5.21/)?my @threads = (); for(0..4) { $threads[$_] = threads->create(\&func) } for(@threads) { $_->join }
In reply to Coro threads by Kirche
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |