Tagged articles
3 articles
Page 1 of 1
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.

ConcurrencyThread Starvationdeadlock
0 likes · 33 min read
Deadlock, Livelock, and Thread Starvation in Java Concurrency
Java Captain
Java Captain
Sep 4, 2017 · Backend Development

Understanding and Writing High‑Quality Concurrent Code in Java (Java 5 and Beyond)

This article explains why concurrency is essential, debunks common misconceptions, presents design principles and practical techniques, reviews Java 5 and later concurrency utilities such as atomic classes, explicit locks, CountDownLatch, ConcurrentHashMap, CopyOnWriteArrayList, BlockingQueue, and advanced models like producer‑consumer, reader‑writer, and the dining philosophers problem, and offers testing advice for robust multithreaded applications.

ThreadPooljava.util.concurrent
0 likes · 29 min read
Understanding and Writing High‑Quality Concurrent Code in Java (Java 5 and Beyond)
ZhiKe AI
ZhiKe AI
Feb 22, 2017 · Fundamentals

Understanding Java’s java.util.concurrent Package and Thread Pools

This article introduces the java.util.concurrent package introduced since JDK 5, explains the five thread‑pool creation methods, demonstrates how to use Runnable and Callable, details BlockingQueue operations and implementations, and summarizes best practices for building robust, high‑concurrency Java applications.

BlockingQueueConcurrencyjava
0 likes · 10 min read
Understanding Java’s java.util.concurrent Package and Thread Pools