...
Notifying a single thread rather than all waiting threads can violate the liveness property of the system.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
THI02-J | Low | Unlikely | Medium | P2 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
CodeSonar |
| PMD.Design.UseNotifyAllInsteadOfNotify FB.MT_CORRECTNESS.NO_NOTIFY_NOT_NOTIFYALL | Use notifyAll instead of notify Using notify() rather than notifyAll() | ||||||
Parasoft Jtest |
|
|
| TRS.ANF | Implemented | ||||||
SonarQube Java Plugin |
| S2446 |
- "notifyAll" should be used | Implemented |
Related Guidelines
Bibliography
...
...