🖥️User Mode and Kernel Mode
Also known as User Mode, Kernel Mode, User Space, Kernel Space, Protection Ring, Privilege Level
Two levels of trust. Apps get the low one, and the kernel gets the high one.
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.
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.
Definition
Common mistake
Key takeaways
- 1The chip enforces it. The line is drawn in the hardware, not just in software.
- 2One door across. An app reaches the kernel's side only by a system call.
- 3Crashes stay small. A fault in user mode ends one app and nothing else.