Skip to content
Sharp

Java Threading · interview question

How would you explain a potential risk of using a single-threaded Executor for processing tasks in a multi-threaded environment in an interview?

Multiple choiceHardchapter-15-curatedpremiumjava-threadingexecutorservice
Choose one answer
Answer and explanation

Correct answer

D. It can become a bottleneck for task execution.

Why

A single-threaded Executor processes tasks one at a time, which can become a bottleneck, leading to delays in task processing in a multi-threaded environment where tasks arrive concurrently.

Test yourself on Java Threading

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

Start free test
All Java Threading questions →