Skip to content
Sharp

Concurrency · interview question

What does a strong engineer do when reasoning through gil judgment code?

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

B. Narrate the data shape, the state changes, and the exact rule order step by step.

Why

Interviewers often use simple code to test whether you can reason through execution without bluffing.

Test yourself on Concurrency

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

Start free test
All Concurrency questions →