Tagged articles

TaskQueue

2 articles · Page 1 of 1
IT Services Circle
IT Services Circle
Jun 1, 2026 · Fundamentals

Why Does ThreadPoolExecutor Queue Tasks When Max Threads Are Still Idle?

The article explains why Java's ThreadPoolExecutor places tasks into its work queue before creating non‑core threads, describes the underlying JDK execution steps, shows how Tomcat customizes the queue to prioritize thread creation, and warns about misconfiguring unbounded queues that can cripple performance.

ConcurrencyJavaLinkedBlockingQueue
0 likes · 8 min read
Why Does ThreadPoolExecutor Queue Tasks When Max Threads Are Still Idle?
Programmer XiaoFu
Programmer XiaoFu
May 27, 2026 · Backend Development

Why Does a ThreadPool Queue Tasks Even When Max Threads Are Idle?

The article explains why Java's ThreadPoolExecutor places tasks into a queue before creating non‑core threads, discusses the cost of thread creation and CPU contention, illustrates the design with a bank‑counter analogy, and shows how Tomcat customizes the queue to prioritize thread creation for low‑latency web workloads.

Java ConcurrencyTaskQueueThread pool design
0 likes · 8 min read
Why Does a ThreadPool Queue Tasks Even When Max Threads Are Idle?