← 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?
- A.threading.Thread
- B.asyncio
- C.ProcessPoolExecutor
- 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 →