What does the Global Interpreter Lock prevent?
- A Multiple threads executing Python bytecode simultaneously
- B Any use of threads
- C Multiple processes running
- 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.





