CS FundamentalsModerateGATE CS

What is the purpose of the dual-mode (user/kernel) bit together with a timer interrupt?

  1. A. Dual mode speeds up arithmetic; the timer tracks the date
  2. B. Dual mode stops user code from executing privileged instructions, and the timer ensures the OS regains control even if a process never makes a system call
  3. C. The timer prevents page faults; dual mode prevents deadlock
  4. D. Both exist only to support virtual memory

Correct answer: B. Dual mode stops user code from executing privileged instructions, and the timer ensures the OS regains control even if a process never makes a system call

Without the mode bit, any program could reprogram hardware; without a timer, an infinite loop in user mode would never give the CPU back to the OS.

More Operating Systems questions

Exams that ask this topic