use of Queue

skip at pobox.com skip at pobox.com
Wed Aug 27 06:41:17 EDT 2008


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

Forget that I wrote this.  If they happen to be working on the token they've
consumed at the time the other threads exit, they will as well.  Use the
sentinel token idea instead.

Skip



More information about the Python-list mailing list