Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: What is the correct way to finish multithreaded program?

by Anonymous Monk
on May 05, 2014 at 11:35 UTC ( #1085044=note: print w/replies, xml ) Need Help??


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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085044]
help
Chatterbox?
Discipulus is managing to update/crack his first garmin navigtor: until now just paper maps
Discipulus and discoverd it use sqlite db.. DBI can read it!

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (14)
As of 2017-09-25 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?