Producer starts
Producer #1
Producer notify()
Producer wait()
Consumer starts
Consumer wait()
|
Consumer starts
Consumer wait()
Producer starts
Producer #1
Producer notify()
Producer wait()
Consumer #1
Consumer notify()
Consumer wait()
Producer #2
Producer notify()
Producer wait()
Consumer #2
Consumer notify()
Consumer wait()
Producer #3
Producer notify()
Producer wait()
Consumer #3
Consumer notify()
Consumer wait()
Producer #4
Producer notify()
Producer wait()
Consumer #4
Consumer notify()
Consumer wait()
Producer #5
Producer notify()
Producer wait()
Consumer #5
Consumer notify()
Consumer wait()
Producer #6
Producer notify()
Producer wait()
Consumer #6
Consumer notify()
Consumer wait()
Producer #7
Producer notify()
Producer wait()
Consumer #7
Consumer notify()
Consumer wait()
Producer #8
Producer notify()
Producer wait()
Consumer #8
Consumer notify()
Consumer wait()
Producer #9
Producer notify()
Producer wait()
Consumer #9
Consumer notify()
Consumer wait()
Producer #10
Producer notify()
Consumer #10
|