Tagged articles

Java Util Concurrent

4 articles · Page 1 of 1
Programmer1970
Programmer1970
Feb 13, 2025 · Backend Development

Deep Dive into Java’s Exchanger: How It Works and When to Use It

This article explains Java's Exchanger class, detailing its synchronization mechanism, internal source‑code structure, practical usage examples, and how it compares with other concurrency utilities such as CyclicBarrier, Semaphore, and SynchronousQueue.

ExchangerJUCJava Util Concurrent
0 likes · 10 min read
Deep Dive into Java’s Exchanger: How It Works and When to Use It
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.

DeadlockJava Util ConcurrentThread Starvation
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.

Java Util ConcurrentThreadPool
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.

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