The GATE Grind

GATE 2017 CS (CS2) – Question 17

Operating System · System Calls, Processes, Threads and IPC · 1 mark · Multiple choice

Which are shared by all threads of one process? I: Program counter. II: Stack. III: Address space. IV: Registers.

  1. I and II only
  2. III only
  3. IV only
  4. III and IV only

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (B) III only

Explanation

Threads share the process address space, including code and global data. Each thread maintains its own program counter, register context and stack so it can execute independently. Thus only III is shared, B.

More System Calls, Processes, Threads and IPC questions

All System Calls, Processes, Threads and IPC questions →