Skip to content
Sharp

Concurrency basics · interview question

Why can using CompletableFuture with a large number of tasks in a high-load scenario become a problem in practice?

Multiple choiceHardchapter-15-curatedpremiumconcurrencycompletablefuture
Choose one answer
Answer and explanation

Correct answer

B. Thread starvation due to too many tasks

Why

In a high-load scenario, using CompletableFuture with many tasks can lead to thread starvation because the default common ForkJoinPool may not have enough threads to handle all tasks simultaneously, causing delays.

Test yourself on Concurrency basics

A free test with instant, explained results. No account needed.

Start free test
All Concurrency basics questions →