Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does the Global Interpreter Lock prevent?

  1. A Multiple threads executing Python bytecode simultaneously
  2. B Any use of threads
  3. C Multiple processes running
  4. D Memory being shared between functions
Answer

Multiple threads executing Python bytecode simultaneously

The GIL is released during I/O, so threads still help I/O-bound work. CPU-bound work needs multiprocessing to achieve real parallelism.

All Python MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as