Operating system

On this page 7

An operating system (OS) is the system software that manages a computer’s hardware resources and provides common services to the programs running on it. It schedules processor time, allocates memory, controls storage and devices, enforces security boundaries, and offers a stable interface so applications do not need to talk to hardware directly.

Across all operating systems, the OS is the central layer between firmware below and application software above. Windows, macOS, Linux distributions, Android and iOS are general-purpose examples, while real-time operating systems run in cars, medical devices and industrial controllers. Understanding the OS explains why software runs on one platform but not another and how a computer shares limited resources among many tasks.

How an operating system manages a computer

The core of an operating system is the kernel, which runs in a privileged processor mode with full access to the hardware. Applications run in user mode with restricted rights and request services from the kernel through system calls, such as opening a file, allocating memory or sending network data.

Around the kernel sit device drivers, system libraries, services and a user interface, either a command-line shell or a graphical environment. Together they turn raw hardware into abstractions such as files, processes, windows and network sockets that every program can use the same way.

The main responsibilities of an operating system are summarized below. Each one corresponds to a subsystem of the kernel or of the supporting system software.

FunctionWhat the OS doesTypical mechanism
Process managementCreates, schedules and ends programsPreemptive scheduler, threads, priorities
Memory managementGives each process its own address spaceVirtual memory, paging, protection
File systemsOrganizes data on storageNTFS, APFS, ext4, permissions
Device managementControls hardware through driversInterrupts, DMA, driver model
Security and isolationSeparates users and processesAccounts, access control, sandboxing
NetworkingProvides communication between systemsTCP/IP stack, sockets
Core functions of an operating system

Kernel architectures and OS types

Operating systems differ in how much code runs inside the kernel. The kernel architecture affects performance, reliability and how easily the system can be extended.

ArchitectureDesign principleTrade-offExample family
Monolithic kernelDrivers and services run in kernel spaceFast, but a driver bug can crash the systemLinux
MicrokernelMinimal kernel, services in user spaceRobust isolation, more communication overheadQNX, seL4
Hybrid kernelMix of both approachesBalances speed and modularityWindows NT, XNU
UnikernelApplication and kernel built as one imageTiny and fast, single purposeSpecialized cloud workloads
Common kernel designs

Operating systems are also classified by purpose: desktop and server systems, mobile systems optimized for battery and touch, embedded systems with small footprints, and real-time operating systems (RTOS) that guarantee response times measured in microseconds to milliseconds.

The operating system is one category of system software, and it is easiest to understand by comparison with its neighbors. The boundaries matter when installing, updating or troubleshooting a computer.

TermRoleRelationship to the OS
FirmwareInitializes hardware at power-onStarts the OS boot loader
System softwareBroad category of platform softwareThe OS is its central part
RuntimeEnvironment that executes code, such as a JVMRuns on top of the OS
Application softwarePrograms for user tasksDepends on OS services and APIs
HypervisorRuns several virtual machinesHosts multiple guest operating systems
How the operating system relates to neighboring software terms

Applications are built for a specific application binary interface (ABI) and set of APIs. That is why a Windows program does not run natively on macOS, even on the same processor, unless a compatibility layer or virtualization is used.

Choosing and maintaining an operating system

The choice of operating system is driven mainly by software compatibility, hardware support and management requirements, rather than by abstract technical superiority. Organizations usually standardize on a small number of platforms to simplify support.

  • Check application support first: required business software and drivers often decide the platform.
  • Follow the support lifecycle: an OS version without security updates becomes a growing risk.
  • Apply updates promptly: monthly security patches close vulnerabilities in the kernel and system components.
  • Plan major upgrades: feature releases can change drivers, APIs and hardware requirements such as TPM or UEFI.
  • Use central management for fleets, such as policy tools and mobile device management.

Hardware requirements matter as well. Current desktop systems commonly require 64-bit processors, several gigabytes of RAM and modern firmware features, and older hardware may be limited to lightweight Linux distributions or extended support releases.

Common misconceptions and limits

Several everyday beliefs about operating systems are inaccurate. Clarifying them helps with realistic expectations about performance and security.

  • The desktop is not the operating system: the graphical shell is only one component on top of the kernel.
  • No operating system is immune to malware: security depends on updates, configuration and user behavior.
  • Unused RAM is not wasted savings: modern systems use free memory for caching to speed up access.
  • More background services do not always mean slowness: idle services consume little processor time.

Stripped to the essentials

An operating system is the manager that runs a computer behind the scenes. It decides which program gets to use the processor, where each program keeps its data in memory and how files are stored on the disk.

Without it, every app would have to control the hardware on its own, which would be chaotic. Windows, macOS, Android and Linux are all operating systems, each giving apps a common foundation to build on.

Where it is applied

A manufacturing company runs office PCs on a desktop operating system whose support period ends in six months. After that date, security updates stop, and the company’s insurer requires supported software on all networked machines.

The IT team tests its accounting and production-planning applications on the newer OS version, confirms that the PCs meet the firmware and TPM requirements, and replaces twelve machines that do not. It then deploys the upgrade in waves over six weekends using central management tools. All 140 PCs move to a supported release before the deadline without interrupting production.