use of Queue

Paul Rubin http
Wed Aug 27 15:55:29 EDT 2008


skip at pobox.com writes:
> Or make the consumers daemon threads so that when the producers are finished
> an all non-daemon threads exit, the consumers do as well.

How are the consumers supposed to know when the producers are
finished?  Yes, there are different approaches like sentinels, but the
absence of a unified approach built into the library really does seem
like a deficiency in the library.



More information about the Python-list mailing list