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

Which of these does each thread of a process have its OWN copy of?

Which of these does each thread of a process have its OWN copy of?

  1. A.Heap
  2. B.Global variables
  3. C.Stack
  4. D.Open files
Answer & explanation

Correct answer: Stack

Each thread needs its own stack for its function calls and local variables.

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 →