...
Notifying a single thread rather than all waiting threads can violate the liveness property of the system.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
THI02-J | Low | Unlikely | No | YesMedium | P2 | L3 |
Automated Detection
| Tool | Version | Checker | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CodeSonarParasoft Jtest |
| CERT. | DesignTHI02. | UseNotifyAllInsteadOfNotifyANF | Do not use 'notify()'; use 'notifyAll()' instead so that all waiting threads will be notified | Use notifyAll instead of notify Using notify() rather than notifyAll() | Parasoft Jtest | |||||||||||
| Include Page | Parasoft_V | Parasoft_V | TRS.ANF | Implemented | ||||||||||||||
| SonarQube |
| S2446 | "notifyAll" should be used |
...