Lock

Posts tagged Lock

Hibernate Locking

Introduction Locking refers to a mechanism taken for granted in a relational database to prevent any modification to the data between the time the data are read and…

ReadWriteLock in Java

A ReadWriteLock interface in Java is more sophisticated than the Lock interface. Imagine you have an application that reads from and writes to some resources, but reading frequency…

ReentrantLock in Java

A Reentrant lock is an implementation of java.util.concurrent.Lock interface with the same basic behavior and semantics as the implicit monitor lock accessed using synchronized methods and statements, but…

Lock in Java

Introduction You may be already aware of basic concepts around thread synchronization and various mechanisms using synchronized keyword. A lock interface is a thread synchronization aid like synchronized…