CMPE 261 - Lab worksheet - Week 12

Problem : Producer-Consumer implementation

Examine the producer-consumer example at http://docs.oracle.com/javase/tutorial/essential/concurrency/guardmeth.html

Modify the classes in the program to use 10 producer and 10 consumer threads, where each consumer reports its identity in front of the messages it prints out.