Idle wait for outstanding threads?

Aahz Maruch aahz at panix.com
Wed Jan 30 10:56:21 EST 2002


In article <f72dac0d.0201300518.35860565 at posting.google.com>,
Alan Kennedy <alanmk at hotmail.com> wrote:
>
>From a main thread, I start a number of threads to execute some
>service, say some database queries. I want the main thread to wait
>until all of the service threads are complete before continuing.

Erno gave you the simple/correct response, but if you explained why you
want the main thread to wait for *all* the subthreads (rather than
processing results as they come in), you might get a better answer.
-- 
                      --- Aahz  <*>  (Copyright 2002 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

"I got the new SPORT-UTILITY Segway."  --Tom Toles



More information about the Python-list mailing list