Producer-consumer threading problem

Aahz aahz at pythoncraft.com
Wed Jun 11 15:35:00 EDT 2008


In article <1f8adb7a-1257-4a56-b69a-557115c60050 at k37g2000hsf.googlegroups.com>,
George Sakkis  <george.sakkis at gmail.com> wrote:
>
>I'd like some feedback on a solution to a variant of the producer-
>consumer problem. My first few attempts turned out to deadlock
>occasionally; this one seems to be deadlock-free so far but I can't
>tell if it's provably correct, and if so, whether it can be
>simplified.

Take a look at the threading tutorial on my web page, specifically the
threadpool spider.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha



More information about the Python-list mailing list