← Quiz: Threads and Context Switching: all 10 questions
Quiz: Threads and Context Switching · Question 2 of 10
In the Python demo, why did the list stay empty after the child process ran?
In the Python demo, why did the list stay empty after the child process ran?
- A.The process crashed
- B.The child process changed its own copy of the list in its own memory
- C.multiprocessing cannot call functions
- D.join() deletes the list
Answer & explanation
Correct answer: The child process changed its own copy of the list in its own memory
Processes do not share memory by default.
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 →