http://qs321.pair.com?node_id=1085040


in reply to Re: What is the correct way to finish multithreaded program?
in thread What is the correct way to finish multithreaded program?

Hmm... According to docs:
$thr->is_joinable() Returns true if the thread has finished running, is not detached and has not yet been joined. In other words, the thread is ready to be joined, and a call to $thr->join() will not block.
Previous block of code (while (..) {..}) used to wait threads to finish (I think). But may be I'm wrong :-(