Versions Compared

Key

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

An exceptional condition can circumvent the release of a lock, leading to deadlock. According to the Java API [API 2006]

A ReentrantLock is owned by the thread last successfully locking, but not yet unlocking it. A thread invoking lock will return, successfully acquiring the lock, when the lock is not owned by another thread.

...

Bibliography

[API 2006]

Class ReentrantLock

 

...