In standard CPython, what is the main effect of the Global Interpreter Lock (GIL)?
Correct answer
C. Only one thread executes Python bytecode at a time
23 views
C. Only one thread executes Python bytecode at a time
23 views
The GIL limits CPU-bound threads, so multiprocessing is used for parallel computation, while threads still help with I/O-bound work. Python 3.13 offers an experimental build without the GIL.
Asked in: NTS, Python Developer Interviews
Not sure why the answer is C? Ask here and get an explanation.