Understanding BlockingQueue in Java: Internal Principles and Use Cases
Understanding BlockingQueue in Java: Internal Principles and Use Cases
BlockingQueue is a core component of Java concurrent programming. It serves both as a "queue" (storing elements) and provides "blocking" characteristics: a thread fetching an element blocks when the queue is empty, and a thread inserting an element blocks ...
Posted on Mon, 27 Jul 2026 17:14:29 +0000 by gfrank
In-Depth Java ThreadPoolExecutor Source Code Analysis
ThreadPoolExecutor Constructor Parameters
The ThreadPoolExecutor constructor provides the core parameters for configuring the thread pool:
public ThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
Blo ...
Posted on Sat, 27 Jun 2026 18:01:22 +0000 by zoidberg