Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 475 Bytes

UseOfNotifyMethod.md

File metadata and controls

11 lines (6 loc) · 475 Bytes

Pattern: Use of notify()

Issue: -

Description

Checks for code that calls notify() rather than notifyAll(). Java monitors are often used for multiple conditions. Calling notify() only wakes up one thread, meaning that the awakened thread might not be the one waiting for the condition that the caller just satisfied.

Further Reading