Tag

Reentrant Lock

0 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Dec 11, 2022 · Backend Development

Understanding Spin Locks and Implementing a Reentrant Spin Lock in Java

This article explains the concept of spin locks, compares them with non‑spin locks, discusses their advantages and drawbacks, and provides Java code examples—including an AtomicLong implementation and a custom re‑entrant spin lock—to illustrate how spin locks work in concurrent programming.

AtomicLongConcurrencyJava
0 likes · 8 min read
Understanding Spin Locks and Implementing a Reentrant Spin Lock in Java
Sanyou's Java Diary
Sanyou's Java Diary
Jun 12, 2022 · Backend Development

How Zookeeper’s Curator Implements Distributed Locks: A Deep Dive

This article explains how Curator uses Zookeeper's temporary sequential nodes to implement distributed locks, covering lock acquisition, reentrancy, fairness, read‑write semantics, batch locking, and a comparison with Redis‑based locks, while illustrating the process with code snippets and diagrams.

CuratorDistributed LockFair Lock
0 likes · 14 min read
How Zookeeper’s Curator Implements Distributed Locks: A Deep Dive