Kevin wrote:
> The best way to do this is by using a flag or event that the child-threads
> monitor each loop (or multiple times per loop if it's a long loop).  If the
> flag is set, they exit themselves.
> 
> The parent thread only has to set the flag to cause the children to die.

Doesn't work, because threads can be blocked. Worse,
some threads may be blocked waiting for others to release
them. The unblocked threads check the flag and exit, so
they're never signal the blocked ones.


-- 
--Bryan
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to