Skip to content
Sharp

Concurrency · interview question

Which move is the best default when semaphores, timeouts, and cancellation becomes part of this workflow?

Multiple choiceMediumchapter-15-curatedpremiumconcurrencysemaphores-timeouts-and-cancellation
Choose one answer
Answer and explanation

Correct answer

C. Apply limits and timeouts so one slow dependency or surge does not saturate the rest of the workflow.

Why

Apply limits and timeouts so one slow dependency or surge does not saturate the rest of the workflow. That is the stronger engineering move because interviewers like answers that mention backpressure, limits, and cleanup. Unlimited concurrency often looks impressive in a demo and dangerous in production.

Test yourself on Concurrency

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

Start free test
All Concurrency questions →