Versions Compared

Key

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

...

Java neither prevents deadlocks nor requires their detection [JLS 2005]. Deadlock can occur when two or more threads request and release locks in different orders. Consequently, programs are required to avoid deadlock by acquiring and releasing locks in the same order.

...

ToolVersionCheckerDescription
Coverityv7.5

LOCK_INVERSION

LOCK_ORDERING

Implemented
ThreadSafe
Include Page
ThreadSafe_V
ThreadSafe_V

CCE_DL_DEADLOCK

Implemented

 

Related Guidelines

Bibliography

 

      Rule 09: Locking (LCK)Image Added