Home » Archive

Articles tagged with: explicit

Java »

[23 Nov 2008 | No Comment | 1,016 views]
Implicit & Explicit Locks

In Computer Science, synchronization refers to relationships among events. For example:

  • Serialization: Event A must happen before Event B.
  • Mutual Exclusion: Event A and Event B must not happen at the same time.

Prior to JDK 5, Java’s support for synchronization was based on implicit locks by the use of synchronized keyword. This article introduces explicit locks introduced in JDK 5.