Previous block of code (while (..) {..}) used to wait threads to finish (I think). But may be I'm wrong :-(
Maybe, it depends on more code than shown I think :)
safest way to wait for threads to finish is to actually wait for them to finish :) blockingly $_->join for threads->list
In reply to Re^3: What is the correct way to finish multithreaded program?
by Anonymous Monk
in thread What is the correct way to finish multithreaded program?
by Gangabass
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |