Notify wakes one waiter only

Code reviewHard40 minOracle style

Your task

Review this Java bounded-buffer producer using wait/notify.

There are two concurrency bugs, name both.