Which of the following need not necessarily be saved on a context switch…

2000

Which of the following need not necessarily be saved on a context switch between processes?

Answer: B. Translation lookaside buffer (TLB)The correct answer is: Translation lookaside buffer (TLB). During a context switch, the operating system must save the process state required to resume…

  1. A.

    General purpose registers

  2. B.

    Translation lookaside buffer (TLB)

  3. C.

    Program counter

  4. D.

    All of the above

Attempted by 339 students.

Show answer & explanation

Correct answer: B

The correct answer is: Translation lookaside buffer (TLB).

During a context switch, the operating system must save the process state required to resume execution later. This includes registers such as the general-purpose registers and the program counter.

The Translation Lookaside Buffer (TLB) is different. It is a hardware cache of recent virtual-to-physical address translations. TLB entries are tied to an address space and can become invalid when switching to another process.

Therefore, the TLB is usually flushed, invalidated, or managed with address-space identifiers, and the new process builds its own TLB entries as it runs. It need not necessarily be saved as part of the process context.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…