operating-systems

Definition

User Mode

User Mode is a restricted execution state of the processor designed for executing untrusted application code.

Properties

Restrictions

Code running in User Mode cannot:

  • Access kernel space memory.
  • Manipulate hardware registers directly.
  • Execute privileged instructions (attempts cause a trap).

Transition

To perform privileged operations, a process must transition to kernel mode via controlled gates: