Entry
I want one thread to wait for one or more other threads to terminate.
Jul 22nd, 2000 20:10
unknown unknown, Dale Burnett, Aahz Maruch
On windows you can use the Win32 functions WaitforSingleObject, SetEvent
and CreateEvent. If you cant or dont want to use the win32 functions,
then check out the Event Objects in the threading module.
-----------
If you're waiting for one thread, that's reasonably easy. If you're
waiting for all of a group of threads, use a semaphore. But if you're
waiting for any one of a group of threads, that's a bit more tricky.
I'd suggest waiting on a queue, where the threads dump their data into
the queue.