Kirche has asked for the wisdom of the Perl Monks concerning the following question:
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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Coro threads
by rcaputo (Chaplain) on Feb 02, 2010 at 21:56 UTC | |
|
Re: Coro threads
by zwon (Abbot) on Feb 02, 2010 at 21:18 UTC | |
|
Re: Coro threads
by ikegami (Patriarch) on Feb 02, 2010 at 22:57 UTC |