# L-35 MCS 260 Fri 8 Apr 2016 : prodcons.py
"""
Illustration of producer/consumer with threads.
"""
from class_producer import Producer
from class_consumer import Consumer

QUE = []     # queue is shared list
PRD = Producer('producer', QUE, 1, 3, 4)
CNS = Consumer('consumer', QUE, 3, 1)
PRD.start()  # start threads
CNS.start()
PRD.join()   # wait for thread to finish
CNS.join()
