Revert "Replaced wrong usage of Object.notify() with Object.notifyAll()."

This reverts commit ff3258e0b7dd897f49b08aada2d9c362df206002.