Skip to content
Sharp

Concurrency · interview question

A bug appears around gil judgment. What is the strongest first debugging move?

Multiple choiceHardchapter-15-curatedpremiumconcurrencygil-judgment
python
# Threads help overlapping I/O.
# Processes help CPU-heavy work.
# The GIL changes the tradeoff for CPU-bound Python code.
Choose one answer
Answer and explanation

Correct answer

C. Trace one concrete example, inspect the state transitions, and compare them to the intended rule before rewriting anything.

Why

That approach is reliable because it creates evidence. Oversimplified GIL answers usually sound memorized and miss the real decision boundary.

Test yourself on Concurrency

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

Start free test
All Concurrency questions →