CS FundamentalsHardGATE CS

Which of these does a context switch between two threads of the SAME process need NOT change, but a switch between two different processes must?

  1. A. The page-table base register (address space)
  2. B. The program counter
  3. C. The stack pointer
  4. D. The general-purpose registers

Correct answer: A. The page-table base register (address space)

Threads of one process share the address space, so the page-table base (and usually TLB contents) stay the same; PC, SP and registers are per-thread and always switch.

More Operating Systems questions

Exams that ask this topic