Every time you open a laptop or wake a phone from sleep, a small and busy piece of software is already at work. You never see it, and you never open it like an app, yet almost everything the computer does passes through it. That piece of software is the kernel, and it sits at the centre of the system, quietly keeping the hardware and the software in step.

The kernel is the core of an operating system. It is the part that talks directly to the processor, the memory, the storage, and the other hardware inside the machine. The rest of the system, from the desktop you see to the apps you use, relies on the kernel to carry out its requests. When an app needs to save a file, play a sound, or show an image on the screen, it does not reach the hardware on its own. It asks the kernel, and the kernel makes it happen.

A computer has many parts that must share the same resources, and many programs that want to use them at the same time. Without something in the middle to organise them, programs could overwrite each other or fight over memory. The kernel is the organiser. It decides who gets what, and when.

What the kernel does

The kernel has a few main jobs, and it performs them constantly. The first is managing the processor. A modern computer seems to run many programs at once, but a processor core can only do one thing at a time, so the kernel shares its attention in tiny slices. It gives each running program a short turn, then moves on to the next, and it does this so quickly that everything seems to happen at once.

The second job is managing memory. Every program needs space to hold the data it is working with, and the kernel keeps track of which part of memory belongs to which program. It makes sure that one program cannot wander into the memory of another by mistake, and it frees memory when a program closes so that it can be used again. This careful bookkeeping is one reason a single faulty app does not usually bring down the whole machine.

The third job is managing input and output. The kernel talks to the keyboard, the screen, the storage drive, and the network connection, using small programs called drivers to speak the language of each device. When you press a key, the kernel receives the signal and passes it to the right program.

A close-up of a computer circuit board in a dark room, with a single glowing coral-red chip at its centre

How the kernel works

The kernel runs in a protected part of the system, separate from ordinary programs. Programs run in what is often called user space, where they can do their work but cannot reach the hardware directly. The kernel runs in kernel space, where it has full access to the machine. When a program needs something from the hardware, it makes a request, known as a system call, and the kernel carries it out on the program’s behalf.

Think of it like a reception desk in a large building. Visitors ask at the desk, and the staff behind it arrange what is needed, following the rules of the building. The kernel is that desk.

This arrangement also protects the system. If a program crashes, the kernel can clear away its memory and keep the rest of the machine running. If a program tries to do something it should not, the kernel can refuse.

The kernel and the rest of the system

It helps to see the kernel as one layer in a larger system. At the bottom is the hardware itself, the physical parts you can touch. Above the hardware sits the kernel, managing it. Above the kernel sits the rest of the operating system, including the tools that manage files and settings. Above that sit the apps, the programs you actually use.

Below the kernel, in a sense, sits the firmware, the low-level software built into a device that starts the machine and prepares the hardware before the kernel takes over. The firmware runs first, checks that the hardware is ready, and then hands control to the kernel. The kernel then starts the rest of the operating system, and the operating system starts the apps. Each layer depends on the one below it.

Above the kernel, apps add their own features. A plugin, for example, adds a new feature to software you already use, and it runs far above the kernel, in the world of apps and documents. The plugin never speaks to the hardware directly. It asks the app, the app asks the operating system, and the operating system asks the kernel.

Dark server racks in a dim room, with a single coral-red glowing server unit among the black hardware

Different kinds of kernel

Not all kernels are built the same way. A monolithic kernel keeps most of the main services inside the kernel, including the drivers and the file system. This can make it fast, but a fault in one part can affect the whole kernel. A microkernel keeps only the most basic jobs inside the kernel, such as managing the processor and the memory, and moves the other services into separate programs outside it. This can make the system more stable, but it can also be slower. There are also hybrid designs, which mix the two approaches.

A black desktop computer tower on a wooden desk in a dark room, with a single coiled coral-red cable beside it

Why the kernel matters to you

Most of the time, you will never think about the kernel at all, and that is a sign that it is doing its job well. But its work shows up in the everyday feel of a computer. A machine that switches smoothly between apps, keeps working when one program misbehaves, and wakes quickly from sleep is a machine whose kernel is working well.

Updates matter here too. When your computer installs a system update, it is often updating the kernel, or the drivers that work with it, so that the machine can use new hardware, fix a fault, or close a security gap. That is why a system update sometimes asks you to restart the computer. The kernel is loaded when the machine starts, so a new version can only take over after a fresh start.

A quiet core

The kernel is easy to overlook because it never asks for attention. It has no window, no icon, and no settings page of its own that most people will ever open. Yet it is the reason the rest of the system can be as simple as it is. Apps can be written without knowing the details of every piece of hardware, because the kernel hides those details behind a steady set of requests.

Back to the journalDiscuss a project