Processor privilege level (source code)

= Processor privilege level

A <processor privilege level> controls which instructions and resources executing code may access. Operating-system kernels use a more privileged context than ordinary user programs, and a controlled trap or system call changes context to request protected operations. In <x86>, protection rings are numbered zero through three, with zero most privileged; common systems use rings zero and three for kernel and userspace. Other architectures use different mode systems. A privilege level is enforced by processor state and memory-access rules, rather than being a convention programs may ignore.

// Target: computer-science.bigb