threading/Queue: join() and task_done() not working? (deadlock)

Raymond Hettinger python at rcn.com
Wed Feb 27 14:42:37 EST 2008


On Feb 27, 11:06 am, Gal Aviel <galav... at yahoo.com> wrote:
> Hello All,
>
> I'm seeing strange behavior where one thread waits on a queue using join() and
> the later (or so I think, according to order of the printing in STDOUT) another
> thread calls task_done() on the very same queue, however the first thread does
> not wake up, it keeps blocking forever.
>
> I'm using a queue of size 1, my print's:


Does the problem persist with a queue size of 2?


Raymond




More information about the Python-list mailing list