GATE CS 2023 | Question 22

Operating Systems › Introduction & Process Management · MSQ · 1 mark · Answer: B, C, D

  1. Question 22Operating Systemsmsq1 mark
    Which need to be saved on a context switch from one thread T1 to another thread T2 of the SAME process?
    • A.
      Page table base register
    • B.
      Stack pointer
      ✓
    • C.
      Program counter
      ✓
    • D.
      General purpose registers
      ✓

    Answer: B, C, D

    Solution

    Answer: (B), (C) and (D) Threads of the same process share the address space, so the page-table base register does NOT change -> (A) not needed. Each thread has its own execution context: stack pointer (B), program counter (C), and general-purpose registers (D) must be saved and restored.

More GATE PYQ on Introduction & Process Management

All GATE CS Operating Systems PYQ →

Attempt GATE CS 2023 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →