Skip to content
Sharp

Concurrency · interview question

What is the clearest sign that code around gil judgment should be refactored?

Multiple choiceHardchapter-15-curatedpremiumconcurrencygil-judgment
Choose one answer
Answer and explanation

Correct answer

A. When the rule is no longer easy to trace, explain, or change without breaking nearby behavior.

Why

A refactor is justified when the code stops communicating its intent. Explain the GIL in terms of CPU-bound tradeoffs while still noting that I/O-bound concurrency can benefit greatly.

Test yourself on Concurrency

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

Start free test
All Concurrency questions →