Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

THI00-J

low

probable

medium

P4

L3

Automated Detection

Automated detection of direct invocations of Thread.run() methods is straightforward. Sound automated determination of which specific invocations are permitted may be infeasible. Heuristic approaches may be useful.

Tool
Version
Checker
Description
Coverity7.5DC.THREADING.thread_runImplemented

Related Guidelines

MITRE CWE

CWE-572. Call to Thread run() instead of start()

...

[API 2006]

Interface Runnable and class Thread

 

...

09. Rule 10: Thread APIs (THI)      09. Rule 10: Thread APIs (THI)