What is a kernel? It is the core program of every operating system: the first software to load, the last to stop, and the only part allowed to talk to the hardware directly. Every app you use works through it.

Turn on any computer and, within seconds, dozens of programs compete for the same processor, the same memory and the same disk. Something has to keep order, decide who goes first and stop programs from trampling each other. That something is the kernel. It sits at the center of the operating system, and every other program, from a browser to a game, runs on top of it and depends on it.
The plainest answer to the question what is a kernel is a picture. Think of a busy airport. Planes, crews and passengers all want the same runways and gates, so a control tower decides who lands, who waits and who takes off next. The kernel is the control tower of a computer. The apps are the planes. The processor, the memory and the disk are the runways. Nothing moves without permission, and the tower keeps the schedule fair, fast and safe.
This guide explains the kernel in plain words. It covers where the kernel sits inside a system, the four jobs it does all day, the two modes it switches between, the three designs its builders argue about, and the quiet work it does in the first seconds after you press the power button.
| What is a kernel: the short version | |
|---|---|
| Core job | Run the machine itself: schedule programs, hand out memory, drive the hardware, guard the gates |
| Where it runs | In kernel mode, a protected space that apps cannot enter directly |
| Always on | Loads at boot and keeps running until the device switches off |
| Three designs | Monolithic, microkernel and hybrid |
| On your devices | Linux inside Android, the NT kernel inside Windows, XNU inside Macs and iPhones |
What is a kernel in an operating system?
An operating system is bigger than its kernel. Around the kernel sit libraries, settings tools, a file manager and the shell or desktop you click on. Your apps sit on top of all of it. The kernel is just the core, but it is the part with the power: it is the only software in the machine allowed to give orders to the hardware itself.
The name gives the idea away. In a nut or a grain of corn, the kernel is the seed at the center, the part everything else grows around. Computer builders borrowed the word for the same reason. Take the kernel away and the rest of the operating system has nothing to stand on. Apps can ask for a file or a network connection, but only the kernel can actually deliver one.

The four jobs every kernel does
Strip away forty years of detail and kernel functions come down to four jobs. Ask what is a kernel’s day filled with, and the honest answer is these four tasks, repeated millions of times before lunch: scheduling, memory, hardware and gatekeeping.

1. Process scheduling
A process is a program in action: the browser running, not the browser sitting on disk. A processor core runs only one process at a time, so the kernel’s scheduler slices time into tiny pieces and rotates processes through them. Each process gets a turn measured in milliseconds, urgent work jumps the queue, and the rotation spins so fast that a dozen open apps all feel alive at once. Sharing one machine between many programs is a subtle art, and our explainer on parallel and concurrent processing separates the two ideas the scheduler blends together.
2. Memory management
Every process needs memory, and memory is where programs are most dangerous to each other. The kernel hands out RAM in small fixed blocks called pages, and gives each process its own private view of memory, called virtual memory. To the process, its memory looks large, empty and entirely its own. Behind the curtain, the kernel maps those private views onto the real chips, moves cold data out to disk when RAM fills up, and blocks any process that reaches for memory it never received.
3. Drivers and hardware access
Hardware speaks in dialects. Every disk, keyboard, printer and graphics card expects its own signals, sent in its own order. A driver is a small translator program that knows one device’s dialect. The kernel loads the drivers, routes requests through them, and shows every app the same simple picture: files to read, a screen to draw on, a network to send through. Plug in a new camera and nothing works until a driver teaches the kernel how to talk to it.

4. System calls and security
The last job ties the other three together. An app never touches hardware itself. Instead it files a formal request, called a system call: open this file, read that network packet, start this process. The kernel receives the request, checks who is asking and whether they are allowed, and only then does the work. That checkpoint is the machine’s main line of defense, and developers build extra fences on the same idea. It is how a sandbox environment lets you run untrusted code in a sealed corner of the system.
Kernel mode and user mode
To make the checkpoint real, the processor itself works in two modes. In user mode, code runs with strict limits: an app gets a private slice of memory and no direct path to the hardware. In kernel mode, the limits lift. Code there can read any memory and command any device, which is why only the kernel and its closest helpers may enter. Microsoft states the split plainly in its driver documentation: applications run in user mode, core operating system components run in kernel mode, and the processor switches between the two depending on the code it runs.
Follow one save and the split becomes concrete. You click save in a photo editor, and the app prepares the data inside its own memory, still in user mode. To write it, the app issues a system call. The processor switches to kernel mode, the kernel checks the request, the driver writes the bytes to disk, and the result travels back. The app then resumes in user mode, none the wiser about disks and sectors. That round trip happens thousands of times a second on a busy machine.

The split buys stability and safety together. A bug in a game can kill the game, because the game lives in its own user mode box. It cannot corrupt another app’s memory or reprogram the disk, because the kernel never handed it the keys. When something does crash inside kernel mode, the whole machine usually goes down with it. That risk is exactly why kernel code gets written and reviewed with unusual care.
Three designs: monolithic, microkernel and hybrid
Every kernel does the same four jobs. Designers disagree about one thing: where each service should live. Put a service inside the kernel and it runs fast, close to everything else. Put it outside and it runs contained, unable to hurt the core if it fails. The argument is really about what is a kernel supposed to hold: everything, almost nothing, or something in between. That single choice shapes the software architecture of the whole system, and three answers dominate.
| Design | What runs in kernel mode | How services talk | Examples |
|---|---|---|---|
| Monolithic | Almost everything: drivers, file systems, networking | Direct calls between services, nothing in between | Linux, classic Unix |
| Microkernel | Only scheduling, memory basics and message passing | Services exchange messages for every call | MINIX 3, QNX |
| Hybrid | The core plus key services inside, the rest outside | A deliberate mix of both approaches | Windows NT, macOS XNU |
Linux is the best known monolithic kernel, with one softening trick: it can load extra pieces of code, called modules, while it runs. A new driver can join the kernel without a rebuild or a reboot, which keeps a mostly monolithic design flexible in practice. The project is huge and open, and its official kernel documentation at kernel.org runs to thousands of pages. It even changed how programmers work together. When the kernel’s old tracking tool fell away, Linus Torvalds and the kernel community built Git in 2005 to handle the flood of patches, a story told in our guide to version control systems.

MINIX 3 shows the opposite instinct. Its makers kept only a tiny core running in kernel mode and moved the rest of the operating system, drivers included, out into separate protected processes in user mode, exactly as the MINIX 3 project describes it. If a driver fails there, the core survives and the driver can simply restart. QNX takes the same approach in embedded and real-time systems, where the work cannot pause for a reboot. The cost is chatter: services that would call each other directly in a monolithic kernel must pass messages instead, and every message takes extra steps.

Most systems you own chose the middle path. The Windows NT kernel is known as a hybrid kernel: a simple kernel, a hardware layer, drivers and a set of core services all run in kernel mode, while other subsystems work outside it. Apple’s XNU, the kernel inside macOS and iOS, is a hybrid by construction. Apple’s own source describes XNU as the Mach kernel combined with components from FreeBSD, plus a framework for writing drivers. Purists argue about whether hybrid is a real design or just a compromise. Users mostly notice that their machines are fast and rarely fall over.
What the kernel does when a computer boots
Press the power button and the kernel is hard at work long before the login screen appears. The handover takes five steps, and the kernel enters at step three.
- Firmware wakes up. Built-in software called firmware, BIOS on old machines and UEFI on newer ones, checks the processor, memory and disks, then looks for a disk to start from.
- The bootloader takes over. A small starter program, such as GRUB on Linux or the Windows Boot Manager, finds the kernel file on disk, loads it into memory and hands over control.
- The kernel sets up the machine. It takes stock of the hardware, loads its first drivers, prepares memory and mounts the main disk, the root file system, so it can reach the rest of the system.
- The first process starts. The kernel launches one program and steps back. On most Linux systems that program is systemd, running as process number one, PID 1. Its own manual describes the job: as the first process on boot, it brings up and maintains everything else in user space.
- User space fills in. The first process starts the services, the network and the login screen. From here the kernel settles into its permanent routine, listening for system calls and keeping the schedule.
From that moment until you shut down, the kernel never leaves and never clocks out. It is the first program the machine trusts and the last one still on duty.
Conclusion
So, what is a kernel, finally? It is the core program that turns a pile of circuits into a computer you can use: scheduling every process, guarding every byte of memory, translating for every device and checking every request at the gate. It works in a mode your apps can never enter, follows one of three classic designs, and starts before anything else you will ever see on screen. Once you can picture the control tower, the rest of the operating system falls into place around it.
Frequently asked questions
Is the kernel the same as the operating system?
No. The kernel is the core of the operating system, not the whole thing. A full system also includes libraries, tools, settings and the shell or desktop you actually touch. The kernel is the part underneath: it runs the hardware, guards memory and never switches off while the device is on.
What is the difference between kernel mode and user mode?
Kernel mode runs code with full access to memory and hardware, and only the kernel and its closest helpers run there. User mode runs apps in a restricted space with private memory, so one app cannot read another app’s data or touch the hardware directly. Apps cross into kernel mode only through system calls, and the kernel checks each request before it acts.
Which kernel does my device use?
It depends on the system. Windows runs on the NT kernel, a hybrid design. Macs and iPhones use Apple’s XNU kernel, also a hybrid. Phones and computers running Linux or Android use the Linux kernel, a monolithic design that loads extra drivers as modules while it runs.
Written by
Ahmad Jajja
Ahmad covers AI, chips and the companies behind them. For this guide he went one layer below the chips, into the core software that runs them all.
Reviewed by
Danish Mustafa
Danish reviews laptops, phones and home tech over weeks of real use. He checked every design example in this guide against its official source.
