🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Threads, Processes and the GIL: all 10 questions

Quiz: Threads, Processes and the GIL · Question 3 of 10

A program does heavy maths on large lists in pure Python. Which tool can use all CPU cores?

A program does heavy maths on large lists in pure Python. Which tool can use all CPU cores?

  1. A.threading.Thread
  2. B.asyncio
  3. C.ProcessPoolExecutor
  4. D.time.sleep
Answer & explanation

Correct answer: ProcessPoolExecutor

Each process has its own interpreter and GIL, so processes run truly in parallel.

Can you get the rest right without peeking?

Take the timed Quiz: Threads, Processes and the GIL quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →