AiTechWorlds
AiTechWorlds
Imagine you are a guest at a five-star hotel.
You check in and receive a room card. You order room service and it arrives perfectly timed. You call the front desk and they connect you to the spa. You ask for a taxi and one appears at the entrance in four minutes. The pool is always heated to the right temperature. Hundreds of other guests are simultaneously having equally seamless experiences.
None of this happens by accident. An invisible force is coordinating every single interaction: the hotel manager.
The manager never appears at your table. You never see them in the hallway. But they are simultaneously managing room allocations, coordinating staff schedules, handling complaints, tracking inventory, routing calls, and ensuring that every system in the building runs without disruption.
Your computer's operating system is that hotel manager.
Every app you open is a guest making a request. Every piece of hardware — the CPU, RAM, storage, screen — is a resource like a hotel room or kitchen. The OS allocates resources, schedules tasks, handles conflicts, and ensures that every program running on your computer gets what it needs, exactly when it needs it, without stepping on the toes of every other program running simultaneously.
You rarely think about it. That is the point.
An Operating System (OS) is system software that manages a computer's hardware resources and provides a platform for application software to run.
Without an OS, every application developer would need to write their own code to control the CPU, manage RAM allocation, communicate with storage drives, render pixels on screen, and handle network connections. That is impossible to maintain and would result in total chaos.
The OS abstracts all of that complexity. Applications just ask the OS for what they need — "give me 500 MB of RAM," "write this file to disk," "draw this image on screen" — and the OS handles the details.
A process is a running instance of a program. When you open Chrome, Word, and Spotify simultaneously, each is a separate process. Your CPU has a limited number of cores — a modern Intel Core i9-14900K has 24 cores — but you might have 80+ processes running simultaneously.
The OS handles this by context switching: rapidly jumping between processes, giving each a tiny slice of CPU time in sequence. It happens so fast (millions of switches per second) that everything feels simultaneous. This is multitasking — not true parallelism for every process, but the illusion of it managed brilliantly by the scheduler.
The OS allocates portions of RAM to each running process and strictly enforces boundaries. App A cannot read the memory assigned to App B. This is why one crashing app does not bring down your entire system — the OS's memory protection stops the crash from spreading.
When physical RAM fills up, the OS uses virtual memory — temporarily writing some RAM contents to a section of the storage drive (called the page file in Windows or swap space in Linux) to free up physical RAM for active tasks.
The OS implements a file system — the logical structure that organizes data on storage devices into files and folders. Without a file system, your 2TB hard drive would be a raw, unnavigable stream of binary data.
Hardware speaks its own language. The OS translates between hardware and software using device drivers. When you plug in a USB printer, the OS detects it, loads the appropriate driver, and makes it available to any application that wants to print.
The OS enforces security at multiple levels: user account passwords, file permissions (who can read/write/execute which files), firewall rules (which network traffic is allowed), and process isolation (preventing malicious apps from accessing system resources). Windows Hello uses biometric authentication; macOS uses Gatekeeper to verify app authenticity before installation.
The OS provides the interface through which users interact with the computer:
Microsoft Windows has dominated the desktop market since the early 1990s. Windows 11, released in October 2021, requires a 64-bit CPU, 4GB RAM minimum, 64GB storage, and a TPM 2.0 security chip. As of 2024 (StatCounter data), Windows holds approximately 72% of global desktop market share — meaning nearly three out of every four desktop computers runs Windows.
Windows' strength is its universal compatibility: virtually every piece of software ever made for a desktop computer runs on Windows.
macOS (formerly Mac OS X, rebranded in 2016) is Apple's Unix-based desktop operating system. It runs exclusively on Apple hardware — MacBooks, iMacs, Mac Minis, and Mac Pros. The tight integration between Apple's hardware (especially its custom M-series chips, starting with the M1 in 2020) and macOS produces exceptional performance and battery efficiency.
macOS holds approximately 15–16% of desktop market share globally but is disproportionately popular among creative professionals and developers.
Linux was created by Finnish computer science student Linus Torvalds in 1991 as a free, open-source kernel. Today, Linux underpins:
Popular Linux distributions (distros) for desktop use include Ubuntu (beginner-friendly), Fedora (cutting-edge), and Debian (rock-stable). While Linux has only ~4% desktop market share, its influence on computing infrastructure is immeasurable.
Android, developed by Google and first released in 2008, is a Linux-based mobile operating system. It powers approximately 72% of all smartphones globally (StatCounter, 2024). Android is open source (under the Android Open Source Project), which allows manufacturers like Samsung, Xiaomi, and OnePlus to customize it.
As of 2024, there are over 3.9 billion active Android devices worldwide.
iOS, introduced alongside the original iPhone in 2007, is Apple's Unix-derived mobile OS. It holds approximately 27% smartphone market share globally but dominates in certain markets (over 55% in the United States as of 2024). Apple's strict control over both hardware and software gives iOS its reputation for security, consistency, and longevity — iPhones typically receive OS updates for 5–6 years.
| OS | Developer | Launch Year | Market Segment | Share (2024) | Kernel |
|---|---|---|---|---|---|
| Windows 11 | Microsoft | 2021 | Desktop/Laptop | ~72% desktop | Windows NT |
| macOS Sequoia | Apple | 2024 | Desktop/Laptop | ~15% desktop | XNU (Unix-based) |
| Linux (desktop) | Community | 1991 | Desktop/Server | ~4% desktop | Linux |
| Android 14 | 2023 | Mobile | ~72% smartphone | Linux | |
| iOS 18 | Apple | 2024 | Mobile | ~27% smartphone | XNU (Unix-based) |
| Chrome OS | 2011 | Chromebook | ~2% desktop | Linux |
At the core of every operating system is the kernel — the software that communicates directly with the hardware. Applications talk to the OS; the OS talks to the kernel; the kernel talks to the hardware.
There are two main kernel architectures:
Modern multi-core CPUs (like the Apple M4 Pro with 14 cores) can execute multiple threads in true parallel, dramatically improving performance for multi-threaded applications.
Imagine a major international airport — 200 flights arriving and departing each hour. Every plane needs a runway at a specific time. Every flight needs to be kept apart from every other flight in the same airspace. Delays must cascade logically.
Air Traffic Control (ATC) manages all of this — invisible to passengers, essential to operations.
An OS is ATC for your computer:
The moment ATC fails, planes crash. The moment an OS kernel panics (crashes), you get a Blue Screen of Death in Windows or a kernel panic in Linux/macOS.
Next Lesson: The operating system is the foundation — but what sits on top of it? Application software — the apps that make computers useful for everyone from engineers to grandmothers. Let us explore the entire world of apps.
Get this course's notes on Telegram!
Free cheat sheets, summaries & practice exercises