NotifyAll being synchronized.