Tagged articles
4 articles
Page 1 of 1
java1234
java1234
Jan 24, 2026 · Fundamentals

How to Detect Completion of Thread Pool Tasks in Java

This article explains four practical ways to determine when tasks submitted to a Java ExecutorService have finished—using Future's isDone/get, ExecutorService.invokeAll, CompletionService, and CountDownLatch—each with code examples and usage guidance.

CompletionServiceCountDownLatchExecutorService
0 likes · 8 min read
How to Detect Completion of Thread Pool Tasks in Java
Code Ape Tech Column
Code Ape Tech Column
Mar 19, 2025 · Backend Development

ExecutorService vs CompletionService: In‑Depth Comparison and Practical Usage in Java

This article explains the differences between ExecutorService and CompletionService, demonstrates how to replace a simple Future‑based approach with CompletionService for faster result retrieval, analyzes the underlying source code, and outlines typical use‑cases such as load‑balancing and early‑return patterns in concurrent Java applications.

AsyncCompletionServiceExecutorService
0 likes · 12 min read
ExecutorService vs CompletionService: In‑Depth Comparison and Practical Usage in Java
Code Ape Tech Column
Code Ape Tech Column
May 19, 2022 · Backend Development

Understanding Java CompletionService: Implementation, Usage, and Performance Benefits

This article explains the purpose and implementation of Java's CompletionService, compares it with ExecutorService, shows how it retrieves task results in completion order, provides detailed source code analysis, and discusses typical use cases such as load‑balancing and fast‑result retrieval in concurrent applications.

CompletionServiceExecutorServiceJava
0 likes · 11 min read
Understanding Java CompletionService: Implementation, Usage, and Performance Benefits