CS FundamentalsHardGATE CS

Which of these instructions must be privileged (allowed only in kernel mode) for the OS to keep control? 1. Disable interrupts 2. Read the time-of-day clock 3. Set the timer 4. Change the page-table base register 5. Issue a trap (system call) instruction

  1. A. 1, 2, 3, 4 and 5
  2. B. 1, 3 and 4
  3. C. 2 and 5
  4. D. 1, 3, 4 and 5

Correct answer: B. 1, 3 and 4

Disabling interrupts, setting the timer and changing memory mapping would let a user program seize the machine. Reading the clock is harmless, and the trap instruction must be unprivileged because it is how user code enters the kernel.

More Operating Systems questions

Exams that ask this topic