# L-39 MCS 260 Wed 28 Nov 2007 : prodcons.py # # Illustration of producer/consumer with threads. from classproducer import * from classconsumer import * q = [] # queue is shared list p = Producer("producer",q,1,3,4) c = Consumer("consumer",q,3,1) p.start() # start threads c.start() p.join() # wait for thread to finish c.join()