1. Home
  2. Data Science
  3. Python
  4. In standard CPython, what is the main effect of the Global…

Added 2 Nov 2026

In standard CPython, what is the main effect of the Global Interpreter Lock (GIL)?

  1. Global variables cannot be read by any function
  2. Each thread receives its own private memory heap
  3. Only one thread executes Python bytecode at a time Correct answer
  4. Python code always runs on all CPU cores at once

Correct answer

C. Only one thread executes Python bytecode at a time

23 views

MCQSEXAM

Explanation

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.

Reference

Asked in: NTS, Python Developer Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs