Glossary termSystem software

Kernel (Operating System)

Also known as: OS kernel

Core component of an operating system that runs with full hardware privileges and manages processes, memory, devices and system calls.

The kernel is the part of an operating system that is always resident in memory and has complete control over the hardware. It runs in a privileged processor mode, often called kernel space, while applications run in a restricted user space. Programs that need to read a file, allocate memory, send network data or start another program must ask the kernel through system calls. The kernel schedules processes and threads on the processor, manages virtual memory, mediates access to devices through drivers and enforces the isolation that stops one program from reading or corrupting another's memory.

Kernel designs are commonly grouped into families. Monolithic kernels, such as the Linux kernel and traditional Unix kernels, run most operating system services, including drivers and file systems, in kernel space for speed, often with loadable modules. Microkernels, such as MINIX 3, QNX and seL4, keep only minimal functions in the kernel and run other services as separate user-space processes, improving isolation at some cost in performance. Hybrid kernels, including those of Windows NT and Apple's XNU, combine elements of both. In 1992 Andrew Tanenbaum and Linus Torvalds publicly debated these trade-offs on Usenet.

Because the kernel has unrestricted access, bugs in it are especially serious: a crash can halt the whole system, and a vulnerability can give an attacker full control. Device drivers, often written by hardware vendors, are a frequent source of kernel bugs. Research into formally verified kernels, such as seL4, aims to prove mathematically that the code meets its specification. The Linux kernel, maintained by thousands of contributors under Torvalds's coordination, is among the largest collaborative software projects and underpins Android, most servers and many embedded systems.

Key points

  • The kernel runs in privileged mode; applications request its services through system calls.
  • Monolithic kernels keep most services in kernel space, while microkernels move them into user space.
  • Kernel vulnerabilities are critical because the kernel controls all hardware and memory.
  • The Linux kernel is one of the largest collaborative software projects in history.

Related entries

Glossary term

Operating System

HardwareProgrammingFOSS

System software that manages a computer's hardware resources and provides common services and interfaces for the programs that run on it.

Technology

Linux

FOSSHardware

Free and open-source Unix-like kernel created by Linus Torvalds in 1991 that underpins Android, most servers and many embedded devices.

Person

Linus Torvalds

FOSSProgramming

Finnish-American software engineer who created the Linux kernel in 1991 and the Git version control system in 2005.

Glossary term

Main processor of a computer, which fetches, decodes and executes program instructions and coordinates the operation of other components.

Glossary term

Fast, volatile computer memory that holds the data and instructions programs are actively using, readable and writable in any order.

Glossary term

Embedded System

HardwareProgramming

Computer system with a dedicated function built into a larger device, often with limited resources and strict timing or reliability requirements.

Glossary term

Firmware

HardwareCybersecurity

Software stored in a hardware device's non-volatile memory that provides low-level control of the device and often starts it up.

Referenced by

Other entries that discuss or point to Kernel (Operating System).