Pausing until threads are done

Raymond Hettinger vze4rx4y at verizon.net
Thu Mar 13 07:00:06 CET 2003


"Charles Harrison" <cah7k at virginia.edu> wrote in message
news:ab72100f.0303121815.85715c5 at posting.google.com...
> If Ive started a bunch of threads with thread.start_new_thread(), is
> there a simple way to pause my program until they are all finished
> running?

Use queues to communicate between threads.
The main thread can wait on the queue posts
before it wraps-up.


Raymond Hettinger






More information about the Python-list mailing list