![]() |
|
P is for Practical | |
PerlMonks |
Re: Nasty MultiThread problemby BrowserUk (Patriarch) |
on Nov 18, 2005 at 21:54 UTC ( #509969=note: print w/replies, xml ) | Need Help?? |
The solution is to call threads::join on each thread handle before exiting the main thread. This will ensure that all threads have finished before your main thread terminates. You have this line in your code
Why have you commented it out? Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|