J.VI · Java 25 practice question

Why did submitting tasks to a fixed-size thread pool become such a widespread pattern for limiting concurrent access to a scarce resource in Java applications?

Choose one answer
Check answer and explanation

Correct answer: Platform threads are expensive to create and maintain, which made thread pools standard practice.

Explanation

Platform threads carry a high resource cost, so thread pools became standard across Java codebases and developers reused them to bound concurrent resource access.

Common trap

Claiming Java lacked semaphore primitives is tempting if someone assumes concurrency limiters are new, but Semaphore has existed in java.util.concurrent for decades. Blaming operating system socket limits on thread pools is tempting when thinking about network saturation, but the OS does not require a thread pool to accept connections.

Source: JEP 444: Virtual Threads — Description
Checked against the cited text on 2026-11-25.

Report an error in this question