is there enough information?

castironpi at gmail.com castironpi at gmail.com
Tue Feb 26 21:50:19 EST 2008


On Feb 26, 8:31 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> En Tue, 26 Feb 2008 15:49:00 -0200, <castiro... at gmail.com> escribió:
>
> > I'm not quite sure a semaphore is exactly the synchronization object
> > I'm looking for, but I'm a little new to concurrency myself.
>
> The easiest way to implement a producer-consumer model in Python, is using  
> a Queue.Queue object. It already implements the necesary synchronization  
> mechanisms. The producer(s) put items in the Queue; the consumer(s) get  
> items from it.
>
> --
> Gabriel Genellina

Doesn't Queue.Queue operate by side effect?



More information about the Python-list mailing list