CS FundamentalsHardGATE CS

Statement 1: A context switch between two threads of the same process need not flush the TLB. Statement 2: A context switch between two processes on a CPU without address-space identifiers must flush (or invalidate) the TLB. Which is correct?

  1. A. Only statement 1
  2. B. Only statement 2
  3. C. Neither statement
  4. D. Both statements

Correct answer: D. Both statements

Threads of one process share one address space, so their translations remain valid. Different processes map the same virtual pages to different frames, so without ASID tags the old entries would be wrong and must be invalidated.

More Operating Systems questions

Exams that ask this topic