Skip to content
Sharp

Concurrency · interview question

A teammate submits shaky threads for blocking i/o code. Which review comment is the strongest?

Multiple choiceMediumchapter-15-curatedpremiumconcurrencythreads-for-blocking-i-o
Choose one answer
Answer and explanation

Correct answer

D. Make the rule clearer and easier to explain. Use threads when you need overlap around blocking I/O or synchronous libraries that do not fit asyncio cleanly.

Why

The best review comment anchors the change to readability, correctness, and future maintenance. Treating threads as either always bad or always enough misses the actual workload tradeoff.

Test yourself on Concurrency

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

Start free test
All Concurrency questions →