How can I tell when the threads that I spawn are done in python

ogerchikov at gmail.com ogerchikov at gmail.com
Sat Mar 24 00:45:38 EDT 2007


Hi,

In my python scripts, I create thread likes this:
   // for example threadCount is 10
     for j in range(int(threadCount)):
                t = MyThread()
                t.start()

     // wait all the threads are done
    doSomething()

My question is how can i tell when all the threads are done before I
call doSomething()?

Thank you.




More information about the Python-list mailing list