""" This is a simple example of the Producer/Consumer problem in Python. It makes use of threads and queues. """ def main(): from Queue import Queue from prodcons_threaded_locks import Consumer, Producer buffer = Queue() prod = Producer(buffer, "Producer") cons = Consumer(buffer, "Consumer") prod.start(); cons.start(); if __name__ == '__main__': main()