Skip to content

Operating System

An operating system (OS) is the core software that manages a computer’s hardware and software resources, acting as a bridge between users/applications and the physical components of the system. It’s the “conductor” of your device—orchestrating everything from memory allocation to running apps.

FunctionDescription
Hardware ManagementControls CPU, RAM, storage, peripherals (printers, keyboards), and network devices via drivers.
Process ManagementCreates, schedules, and terminates processes (apps). Balances CPU time via multitasking.
Memory ManagementAllocates RAM to apps, uses virtual memory (disk space as RAM) when physical RAM is full.
File System ManagementOrganizes files/folders on storage (HDD/SSD). Manages permissions (e.g., NTFS, APFS, ext4).
User Interface (UI)Provides interaction: GUI (graphical, e.g., Windows/macOS desktop) or CLI (command line, e.g., Terminal).
Security & Access ControlEnforces user authentication, file permissions, and firewall rules.
NetworkingManages network connections (Wi-Fi/Ethernet), protocols (TCP/IP), and data routing.
  1. Kernel

    • The core of the OS. Directly interacts with hardware.
    • Types:
      • Monolithic (Linux, UNIX): Kernel handles all tasks (fast but complex).
      • Microkernel (macOS, QNX): Minimalist kernel; delegates tasks to user-space services (stable but slower).
      • Hybrid (Windows NT): Mixes monolithic/microkernel approaches.
  2. System Libraries

    • Pre-written code (APIs) that apps use to request OS services (e.g., opening files).
  3. Hardware Abstraction Layer (HAL)

    • Isolates hardware-specific code, letting the OS run on different devices.
  4. User Interface

    • Shell: CLI interpreter (e.g., Bash, PowerShell).
    • GUI: Visual desktop (icons, windows, menus).
TypeUse CaseExamples
Desktop/ServerPCs, workstations, serversWindows, macOS, Linux (Ubuntu, Fedora).
MobileSmartphones, tabletsAndroid (Linux-based), iOS/iPadOS (Unix-based).
EmbeddedIoT devices, appliancesFreeRTOS, Raspberry Pi OS.
Real-Time (RTOS)Mission-critical systemsVxWorks, QNX (autonomous cars, aircraft).
  1. Boot Process:
    • BIOS/UEFI → Bootloader → Kernel → Drivers → User interface.
  2. Running an App:
    • You click a program → OS loads it into RAM → CPU executes instructions → OS handles input/output.
  3. Multitasking:
    • OS rapidly switches CPU between apps (e.g., browser + music player), creating the illusion of simultaneous operation.
ComponentRoleExample
OSManages hardware/software resources.Windows 11, Ubuntu.
SoftwareApps running on top of the OS.Chrome, Photoshop.
FirmwareLow-level code embedded in hardware.BIOS, UEFI, router firmware.
  • Hardware Utilization: Maximizes CPU/RAM efficiency.
  • Abstraction: Apps don’t need direct hardware access (simplifies development).
  • Security: Isolates apps to prevent crashes/malware spread.
  • Consistency: Provides standardized interfaces for developers.
  • User Productivity: Enables multitasking, file management, and networking.
  • 1980s: MS-DOS (CLI-driven), Macintosh System 1 (first consumer GUI).
  • 1990s: Windows 95 (GUI revolution), Linux (open-source kernel).
  • 2000s: macOS (Unix-based), Android/iOS (mobile dominance).
  • 2020s: AI integration (e.g., Windows Copilot), cross-device sync (Apple Continuity).

Early computers had no OS! Programs ran directly on hardware via punch cards. The first OS (GM-NAA I/O, 1956) was created for IBM mainframes to manage batch jobs.

In essence:

An OS is the ultimate multitasker—transforming raw hardware into a responsive, secure, and user-friendly tool. Whether you’re gaming on Windows, coding on Linux, or editing video on macOS, the OS is the invisible force making it all possible.