Tech●●●●●Difficulty 2 of 5

What is the kernel, the one program always in charge?

When one app freezes, the computer carries on. That works because of a wall the processor itself enforces around one special program.

▶ Start the story

The kernel is the heart of an operating system: the one program that always has complete control over everything in the system. It stays in memory the whole time the computer is on, and it sits between your apps and the hardware.

Its power comes with a wall. The kernel does its work in a protected area of memory called , while your browser, music player and games live in a separate area called . The wall is not just a polite rule. The processor itself enforces it: applications are not allowed to address kernel memory, and the processor stops a program that tries, for example by writing into it.

Two sides of the wall

Kernel space

  • Complete control of the system
  • Scheduling, hard disk,
  • Protected: ordinary programs cannot enter

User space

  • Browsers, word processors, players
  • Cannot address kernel memory
  • A crash here stays here

That is why a frozen app is usually only an annoyance. A malfunctioning application cannot damage the running kernel, so it cannot easily crash other programs or the whole operating system.

What does the kernel do with all that control? It decides, at any moment, which of the many running programs gets the processor. It decides which memory each program may use, and what to do when memory runs short. It also looks after the hardware, such as the hard disk, and handles , the signals that devices send to get the processor's attention.

Think of the kernel as an air traffic controller. Planes (programs) do not fly wherever they like; they ask the tower, and the tower decides who takes off, who lands and who waits. The controller works in a room that passengers cannot walk into.

Quiz me

0/3

  1. 1.Why can a frozen app usually be closed without crashing the whole computer?
  2. 2.What is the main difference between a monolithic kernel and a microkernel?
  3. 3.What does a protection ring numbered zero usually mean?

Recap

The kernel decides who gets the processor and memory, from inside a wall the hardware enforces.

💡 A trick to remember it · The kernel is the control tower: planes ask, the tower decides, and passengers cannot walk in.

Surprising fact · The processor itself stops any program that tries to write into kernel memory.

Sources (2)

No source, no claim. Every fact in this lesson (15 claims) cites at least one of these.

  1. [1]Kernel (operating system) · Wikipedia
  2. [2]Protection ring · Wikipedia
More lessons in 💻 Tech (3) See all tech lessons →

One more light on your map.

Get one lesson like this every day, about the things you love. Free, in two or five minutes.

Get the share card for this lesson ↗