Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Explore BestHub

#Thread Coordination

RSS feed
Follow or choose interest 7-day signal and related keywords

Latest articles

8 articles in the current browsing window, ordered by publication date.

Java CyclicBarrier: Reusable Thread Barrier with Callback for Parallel Aggregation

This article explains Java's CyclicBarrier synchronization utility, highlighting its reusability and callback support compared to CountDownLatch, and demonstrates its use in two examples: a basic three-thread barrier with a callback and a parallel array sum calculation where threads compute partial sums and aggregate at the barrier.

Claude Code Projects: Coordinator Blind to Thread History, Memory Becomes Source of Truth

Claude Code Projects coordinates work by spawning isolated cloud threads that report back results, but the coordinator sees only thread summaries — not full histories — forcing cross-thread decisions into persistent project memory, while a hard quota of 200 new threads per day replaces soft concurrency preferences.

Mastering Java Synchronization Utilities: CountDownLatch, CyclicBarrier, Semaphore, Phaser, and Exchanger

This article explains how Java's synchronization utilities—CountDownLatch, CyclicBarrier, Semaphore, Phaser, and Exchanger—solve coordination problems such as one‑time startup waits, repeated barrier synchronization, resource‑quota limiting, dynamic multi‑stage collaboration, and two‑thread data exchange, with concrete code examples and a full seckill‑system case study.

Mastering Thread Coordination: Waiters, Rendezvous, Joiners in Java

The article explains the Helper class’s built‑in thread coordination operations—including Waiters, Rendezvous, Joiners, and execution‑aborting methods—detailing their APIs, usage scenarios, parameters, and behavior such as signaling, timeouts, rejoinable points, and how they differ from standard Java synchronization primitives.

Why Does Concurrent Programming Need Wait/Notify? Unlock Efficient Thread Coordination

This article explains why busy‑waiting loops waste CPU in Java concurrency, introduces the wait/notify mechanism, shows how synchronized, wait() and notify()/notifyAll() work together, highlights common pitfalls such as using if instead of while, and provides practical code examples and best‑practice guidelines for safe thread coordination.

Thread Coordination in Java: Analogies, Scenarios, and Classic Concurrency Patterns

This article uses everyday analogies to explain thread coordination, then demonstrates practical Java examples for stopping threads with flags, pausing/resuming, joining, barrier synchronization, exchanging tools, and phaser control, and finally ties them together with the classic producer‑consumer problem using locks and conditions.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.