Intermediate Python
Q46 / 101

What is the Global Interpreter Lock (GIL)?

Correct! Well done.

Incorrect.

The correct answer is B) A mutex that allows only one thread to execute Python bytecode at a time in CPython

B

Correct Answer

A mutex that allows only one thread to execute Python bytecode at a time in CPython

Explanation

The GIL means CPython threads can't run Python bytecode truly in parallel. I/O-bound tasks benefit from threading; CPU-bound tasks need multiprocessing.

Progress
46/101