LearnFrenzy
Sign in Take a free test

Concurrency and Executors · Concurrency and Executors MCQ · Question 1

Why use a thread pool Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 1 Back to Exercise

What is the main advantage of an ExecutorService over creating a new Thread for every task?

  • A Tasks run faster individually
  • B Threads are reused and limited, tasks are queued, and results come back as Futures Correct
  • C It removes the need for synchronization
  • D It runs tasks on the GPU
Correct Answer: Option B

Creating threads is expensive; pools reuse them.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links