Did you read about what join does? It blocks. Try
use threads; my $thr = threads->create ( sub { for (5..10) { print $_,"\n"; sleep(1);}}); my $thr2 = threads->create ( sub { for (10..19) { print $_,"\n";}}); $thr2->join(); $thr->join();
In reply to Re: Thread parallel execution (join blocks)
by Anonymous Monk
in thread Thread parallel execution
by arunbhargav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |