← Quiz: Threads and Context Switching: all 10 questions
Quiz: Threads and Context Switching · Question 9 of 10
In standard CPython, why do threads not speed up a pure calculation?
In standard CPython, why do threads not speed up a pure calculation?
- A.Threads cannot do arithmetic
- B.The Global Interpreter Lock lets only one thread run Python code at a time
- C.Python has no thread support
- D.The OS gives each Python thread its own CPU
Answer & explanation
Correct answer: The Global Interpreter Lock lets only one thread run Python code at a time
Threads still help with waiting work (network, disk); multiprocessing is used for calculation.
Can you get the rest right without peeking?
Take the timed Quiz: Threads and Context Switching quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →