Browsing Tag
Multithreading
2 posts
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+.
Navigating the Waves of Concurrency: Exploring Jakarta Concurrency
“In a concurrent world, imperative is the wrong default!“ In the vast ocean of software development, concurrency stands…