GATE / CS ARCHIVE

GATE CSE 2000 / QUESTION 1.20

State that need not be saved on a context switch

Operating Systems · Processes, Threads & System Calls · Full GATE CSE 2000 paper

GATE 2000, Q1.20 1 mark · MCQ
Report issue

Processes, Threads & System Calls

Question 1.20, GATE 2000: Which need not necessarily be saved: general-purpose registers, the TLB, the program counter, or all of these?
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step 1: The process’s program counter and live architectural registers determine where and how it resumes; their values must be preserved by the switching mechanism.

Step 2: A TLB is a cache of translations also represented in page tables. It may be invalidated and refilled, or entries may remain with address-space identifiers, without saving its entire contents in the process context.

Therefore B. Losing cached translations can hurt performance but does not inherently lose the process’s architectural execution state.

Original paper, page 3