What is Privileged mode?

A CPU operating mode reserved for the OS kernel, in which dangerous operations such as setting page tables and controlling I/O are allowed. It is distinguished from user mode, where applications run.

Field: OS & Hardware

Privileged mode in the explanations

Questions that mention Privileged mode (4)

  1. What is the main purpose of giving a CPU a privileged (kernel) mode and a user mode?
  2. What is the mechanism by which applications ask the OS to perform tasks such as file I/O?
  3. When returning from an interrupt or exception handler, why is a dedicated return instruction (such as RISC-V's sret or mret) used instead of an ordinary function return?
  4. When writing small data one byte at a time, why is accumulating it in a user-space buffer and writing in bulk faster than calling a system call each time?

Related terms

Context switch Demand paging Interrupt Return address System call TLB (translation lookaside buffer) ASID Copy-on-write Device driver Hypervisor

Back to the glossary