Browsing Tag
Thread Dump
1 post
Beyond Deadlocks: Livelocks, Starvation, and Lock Convoys
Deadlock gets the headlines, but its quieter siblings (livelock, starvation, and lock convoys) silently degrade Java systems in production. This follow-up explores three liveness failures that never freeze the JVM yet stop it from doing useful work, with practical detection techniques using jstack, JFR, and async-profiler, plus mitigation patterns including randomised backoff, lock-free structures, StampedLock, lock partitioning, and considerations for virtual threads in Java 21+.