# User Mode and Kernel Mode

> Two levels of trust. Apps get the low one, and the kernel gets the high one.

**Field:** Software Development  
**Category:** Platforms & OS  
**Also known as:** User Mode, Kernel Mode, User Space, Kernel Space, Protection Ring, Privilege Level

## Think of it like

It is like a shop with a counter. You stay on your side, and only the staff go in the back.

## Definition

User mode and kernel mode are two levels of trust that the chip itself enforces. Apps run in user mode, where they can only touch their own memory. The kernel and most drivers run in kernel mode, where they can touch anything. An app crosses the line only by making a system call. So a crash in user mode ends one app, and a crash in kernel mode can stop the whole computer.

## Example

Emma's photo app crashes, and only its window closes. A week later a broken graphics driver crashes, and the whole screen goes blue and restarts.

## Why it matters

It explains why one bad app rarely takes the computer down, and why one bad driver can. So a driver update needs more care than an app update.

## Common mistake

Thinking an app that runs as an admin is in kernel mode. Admin is a user with more rights, and its apps still run in user mode.

## Three principles

- **The chip enforces it.** The line is drawn in the hardware, not just in software.
- **One door across.** An app reaches the kernel's side only by a system call.
- **Crashes stay small.** A fault in user mode ends one app and nothing else.

## Related terms

- [Kernel](https://learn.benibix.com/term/development/kernel)
- [System Call](https://learn.benibix.com/term/development/system-call)
- [Device Driver](https://learn.benibix.com/term/development/device-driver)
- [Operating System (OS)](https://learn.benibix.com/term/development/operating-system)
- [Process](https://learn.benibix.com/term/development/process)

## Taught in

- [System Calls and Drivers](https://learn.benibix.com/learn/development-platforms/system-calls-and-drivers): OS and Files, 2/10

![Three rows. On top, three apps: a web browser, a game and a code editor. Arrows marked system calls run down into the operating system, which holds the kernel and, under it, a disk driver, a screen driver and a Wi-Fi driver. Arrows run from each driver down to its piece of hardware: the disk, the screen and the Wi-Fi chip.](https://learn.benibix.com/diagrams/dev-os-layers.svg)

---

Source: https://learn.benibix.com/term/development/user-mode-and-kernel-mode
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
