Tagged articles

Livelock

3 articles · Page 1 of 1
Dabaoshi
Dabaoshi
Aug 17, 2026 · Fundamentals

Concurrency 07: Understanding Deadlocks and Thread‑Safety Strategies

This article explains how deadlocks arise from four necessary conditions, shows how to detect them with jstack, outlines practical ways to prevent deadlock, distinguishes livelock and starvation, and presents three prioritized approaches—immutability, thread confinement, and synchronization—to achieve thread safety in Java.

ConcurrencyImmutableJava
0 likes · 16 min read
Concurrency 07: Understanding Deadlocks and Thread‑Safety Strategies
FunTester
FunTester
Feb 20, 2024 · Backend Development

Deadlock, Livelock, and Thread Starvation in Java Concurrency

This article explains Java concurrency issues such as deadlock, livelock, and thread starvation, demonstrates deadlock examples, discusses prevention techniques like timeouts and lock ordering, and provides an overview of the java.util.concurrent package including executors, locks, semaphores, latches, barriers, and concurrent collections.

ConcurrencyJavaJava Util Concurrent
0 likes · 33 min read
Deadlock, Livelock, and Thread Starvation in Java Concurrency
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 1, 2020 · Fundamentals

Understanding Deadlocks: Causes, Conditions, Prevention, Detection, and Recovery

This article explains what deadlocks are, the necessary conditions that cause them, how resources can be classified, various detection and avoidance techniques—including the banker’s algorithm and ostrich approach—and discusses related issues such as livelocks, starvation, and communication deadlocks.

Livelockbanker's algorithmdeadlock
0 likes · 24 min read
Understanding Deadlocks: Causes, Conditions, Prevention, Detection, and Recovery