is there enough information?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Feb 26 21:31:49 EST 2008


En Tue, 26 Feb 2008 15:49:00 -0200, <castironpi 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




More information about the Python-list mailing list