
4 Aug
2010
4 Aug
'10
12:02 a.m.
On 8/3/2010 4:42 PM, Albert Schueller wrote:
Tue Aug 3 14:40:40 PDT 2010
It's amazing how you stare at code for an hour, finally give up, post a message to a mailing list, and 5 minutes later solve the problem.
The difference between the two listings is in the join()'s. In the first the three thread objects are created and then the three join()'s executed. In the second, it's thrd[0], join(), thrd[1], join(), thrd[2], join(). I'm not entirely sure why this matters, but it did fix the problem.
It matters because that's precisely what "join" is supposed to do...... halt the calling thread until the "joined" thread is done.