[Tutor] Waiting until a thread ends

lists lists at justuber.com
Fri Mar 18 00:12:06 CET 2011

> Only really glanced at this, but you seem to be checking only the last
> thread *after* the loop?  Surely you should be storing all the threads in a
> list (or someplace) as you create them, and then check them all for liveness
> and if so join them each in turn, to ensure you only print 'FINISHED' once
> you've checked and confirmed that all the threads created have in fact
> finished.
> Walter
That makes absolute sense. Doh on my part!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110317/9f0abc9f/attachment-0001.html>

More information about the Tutor mailing list