Thread APIs (THI)
Rules
- THI00-J. Do not invoke Thread.run()
- THI01-J. Do not invoke ThreadGroup methods
- THI02-J. Notify all waiting threads rather than a single thread
- THI03-J. Always invoke wait() and await() methods inside a loop
- THI04-J. Ensure that threads performing blocking operations can be terminated
- THI05-J. Do not use Thread.stop() to terminate threads
Risk Assessment Summary
| Rule | Severity | Likelihood | Detectable | Repairable | Priority | Level |
|---|---|---|---|---|---|---|
| THI00-J | Low | Probable | Yes | Yes | P6 | L2 |
| THI01-J | Low | Probable | Yes | No | P4 | L3 |
| THI02-J | Low | Unlikely | No | Yes | P2 | L3 |
| THI03-J | Low | Unlikely | Yes | No | P2 | L3 |
| THI04-J | Low | Probable | No | No | P2 | L3 |
| THI05-J | Low | Probable | Yes | No | P4 | L3 |


