🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Threads cannot do arithmetic
  2. B.The Global Interpreter Lock lets only one thread run Python code at a time
  3. C.Python has no thread support
  4. 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 →