🎙 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 10 of 10

Which statement about threads and processes is correct?

Which statement about threads and processes is correct?

  1. A.Threads of one process share memory; separate processes do not
  2. B.Processes share memory; threads do not
  3. C.Both always share all variables
  4. D.Neither can share any data
Answer & explanation

Correct answer: Threads of one process share memory; separate processes do not

That is why threads need locks for shared data and processes must copy data between them.

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 →