PM & AI Chronicles

From Product Thinking to Prompt Engineering – One Tool at a Time

Basic Functions of an Operating System 💻: The Brain at Work 🧠⚙️

This article is part of the Operating Systems Series — where we explore how OS power and shape the world of computing. If you’d like to know what operating systems are and why they matter, check out the main article: 👉 — Operating Systems: The Hidden Power

An Operating System (OS) is like the brain of a computer — it controls and coordinates everything that happens inside. Every time you turn on your computer, open an app, or save a file, the OS quietly makes it all work together. It manages the hardware (such as the CPU, memory, and storage) and helps software (such as your apps and programs) use these components efficiently.

In simple terms, the OS makes sure the right task gets the right resources at the right time. Without an operating system, a computer wouldn’t know how to run programs, talk to devices, or even display information on the screen. In this post, we’ll explore the basic functions that make an OS so important, and then learn a few key terms that will help you better understand how operating systems really work.

Before diving deeper into how an Operating System works, it’s helpful to understand a few common terms you’ll come across often.

Kernel 🧠 :
The kernel is the core part of the operating system. It acts as a bridge between the computer’s hardware and software. Whenever you open a program or perform a task, the kernel manages how resources like CPU time and memory are used. It’s always running in the background, even when you don’t see it.

Version 🔢 :
A version tells you which edition or update of the operating system you’re using. For example, Windows 10, macOS Ventura, or Android 14 are different OS versions. Each version adds improvements, new features, and bug fixes to make the system more stable and secure.

Source 📂 :
The source (or source code) is the actual set of instructions that make up a program or operating system.

  • In open-source systems like Linux, this code is freely available for anyone to view, modify, or improve.
  • In closed-source systems like Windows or macOS, the code is private and controlled by the company that made it.

Shell 💻:
A shell is the interface that allows users to interact with the operating system. It can be text-based (like the Command Prompt or Terminal) or graphical (like your desktop and windows). The shell takes your commands — like opening a folder or running a program — and passes them to the OS for execution.

GUI (Graphical User Interface) 🖱️ :
A GUI, pronounced “gooey,” lets you control the computer using icons, windows, and menus instead of typing commands. It makes computers easier and more enjoyable to use, especially for beginners. Modern operating systems like Windows, macOS, and Android all rely heavily on GUIs.

💡 Real-World Scenario:

Think of a busy airport — one with planes taking off, passengers checking in, luggage moving, and security checks happening all at once.

  • The kernel is like the air traffic control tower, making sure everything runs safely and smoothly — deciding which plane (or process) moves first and where it should go.
  • The version is like the airport’s upgraded systems, adding better runways or improved scanners to handle things more efficiently.
  • The source code is the blueprint of how the airport operates — whether it’s open to others (open-source) or kept private (closed-source).
  • The shell is the control desk or communication channel, where commands and instructions are given to coordinate activities.
  • And the GUI is like the signboards, screens, and directions that help passengers interact with the airport easily — even if they don’t understand what’s happening behind the scenes

Multitasking 🖥️ :
Multitasking means running more than one program at the same time. It allows you to type a document, stream music, and receive notifications simultaneously.
While it looks like everything happens together, the CPU actually switches between tasks very rapidly, completing small portions of work for each — a method called time-sharing.

  • Cooperative Multitasking 🤝 :

In cooperative multitasking, the operating system gives control of the CPU to one program at a time, and it’s up to that program to release control when it’s finished or waiting for something (like user input).

Each program must “play nice” and cooperate with others by voluntarily handing back control to the OS. If one program freezes or refuses to relinquish the CPU, the whole system can become unresponsive because the OS has no authority to regain control.

This approach was more straightforward to design and worked fine when computers ran only a few programs at once. However, it became unreliable as systems grew more complex — one misbehaving program could crash everything. Early versions of Windows (3.1) and Mac OS (System 7) used this model.

  • Preemptive Multitasking ⚡:

Modern operating systems use preemptive multitasking, in which the OS controls CPU scheduling. Instead of relying on programs to cooperate, the OS divides CPU time into slices and automatically assigns them to each active program. When a program’s time slice is over, the OS can interrupt it and give another program its turn — this is called a context switch.

If one program becomes stuck or starts consuming too many resources, the OS can pause, limit, or stop it without affecting others. This system ensures fair resource sharing, better performance, and higher stability, even when dozens of applications run simultaneously.

Today, all major systems — Windows, macOS, Linux, Android, and iOS — use preemptive multitasking to manage tasks efficiently and keep your computer responsive.

32-bit and 64-bit Systems 🔢

Computers process data in bits — the smallest unit of digital information (0s and 1s). Over time, the number of bits that a processor can handle at once has increased, making systems faster and more powerful.

  • 32-bit Systems 📘 :

Before 32-bit processors, most computers used 16-bit systems, which could handle smaller chunks of data and access only a limited amount of memory (up to 64 KB directly). The shift to 32-bit processors allowed computers to:

  • Process larger amounts of data at once,
  • Access more memory (up to 4 GB), and
  • Run more complex software and operating systems.

It took years for 32-bit systems to become mainstream because software and hardware had to be rewritten to take advantage of the new architecture. For a long time, many programs remained 16-bit because rewriting them was expensive and time-consuming.

  • 64-bit Systems📗 :

The 64-bit architecture was first used in servers and high-end workstations, where extensive data processing and high memory capacity were essential.
These processors can handle much larger numbers, address more than 4 GB of RAM, and run modern software more efficiently. As manufacturing costs dropped and performance demands increased, 64-bit processors became common in desktops, laptops, and even mobile phones.

However, 32-bit and 64-bit systems are not fully compatible:

  • A 64-bit operating system can usually run 32-bit applications (through built-in compatibility layers).
  • But a 32-bit OS cannot run 64-bit programs, because it doesn’t understand the larger data structures and instructions.

This is why most modern computers and operating systems are now fully 64-bit — they’re faster, more secure, and ready for future technologies.

💡 Real-World Scenario:

Imagine a city transportation system:

  • Multitasking is like having several buses running different routes at once.
    • In cooperative multitasking, each driver decides when to leave the bus stop — if one forgets or stays too long, traffic piles up.
    • In preemptive multitasking, a traffic controller (the OS) manages the signals, ensuring each bus moves in order and traffic keeps flowing.
  • A 32-bit bus is like a smaller road — it can handle only a few vehicles (data) at once.
  • A 64-bit highway is wider — more lanes, faster movement, and more capacity to handle the growing traffic (data and memory).

When most of us use a computer, we don’t really think about how things happen — we expect them to work. We turn it on, and something magical appears on the screen. We press a key or click a mouse, and we instantly see a response.

But behind this simplicity lies a complex network of hardware components — and it’s the Operating System (OS) that quietly coordinates them so everything runs smoothly.

When you open a document or a spreadsheet, it might seem like one quick action — but in reality, many parts are working together:

  • The keyboard and mouse send your input,
  • The processor (CPU) performs calculations,
  • The memory (RAM) holds the data temporarily,
  • The hard drive stores your file, and
  • The network card may even fetch or save files from another computer if you’re working online.

All these devices speak different “languages,” but the OS acts as a translator, making sure they can work together without the user having to worry about how it all happens.

To talk to hardware, the operating system uses small, specialized programs called Device Drivers. A device driver tells the OS how to communicate with a specific piece of hardware and use its features. For example:

  • A printer driver helps the OS send documents to your printer,
  • A graphics driver helps display images correctly on your screen, and
  • A sound driver allows audio playback through speakers.

If the OS doesn’t have the right driver for a device, that hardware won’t function properly or may not work at all. That’s why sometimes, after installing a new printer or camera, your computer asks to install drivers first.

Operating systems don’t just coordinate hardware — they also manage users and permissions. They ensure that people can’t accidentally (or intentionally) harm the system or access things they shouldn’t. For example:

  • If you try to erase a hard drive or delete system files, the OS will show a warning before allowing it.
  • In organizations, employees only get access to the files or data they need, such as project documents, but not salaries or HR records.

This is possible because most operating systems allow user accounts with different permission levels. Administrators (such as your boss or the IT team) can assign permissions that determine who can view, edit, or delete specific files or settings.

  • Think of the OS as the manager of a busy office.
  • The employees are the hardware components — each one has a different job: typing, storing, printing, or communicating.
  • The manager (OS) makes sure everyone works together efficiently and doesn’t talk over each other.
  • The drivers are like special translators or instructions that tell each employee exactly how to do their job correctly.
  • User accounts and permissions are like office ID badges—they determine who’s allowed into which room or file cabinet.
  • The manager ensures work gets done safely, in order, and by the right people — just like the OS keeps your computer organized, secure, and responsive.

Computers are made up of many different hardware parts — processors, memory chips, graphics cards, storage drives, and more. For software developers, it would be nearly impossible to write programs that directly control every type and model of hardware available. That’s where the Operating System (OS) steps in.

The OS provides a standard environment or interface for software applications. Instead of learning how to talk to each keyboard brand or every type of storage drive, programmers write their applications to communicate with the OS. The OS then translates those requests into instructions the hardware can understand. For example:

  • When a word processor needs to save a file, it simply asks the OS to “save this document.”
  • The OS then figures out how to store that data — whether on a local drive, an SSD, or a network location.

This layer of communication saves developers from dealing with hardware complexity and ensures that different programs can run smoothly on the same system.

Each operating system is built differently, which means software written for one OS usually can’t run on another.

  • A game designed for macOS won’t work on Windows, and a Windows program can’t run directly on Linux.

Even within the same OS family, there can be version differences:

  • Most software that runs on Windows 11 also works on Windows 10, since they share similar foundations.
  • However, an old game designed for Windows 95 (released nearly 30 years ago) might not work properly on modern systems — unless you use special programs called emulators or compatibility modes to help it run.

This standard environment allows thousands of developers to create millions of applications without worrying about every single piece of hardware. The OS acts as the middle layer — a kind of universal translator — so both the software and hardware can focus on what they do best. Without an operating system, every program would need to be rewritten for every different computer model — a task that would make modern computing impossible.

Think of the operating system as a movie production studio:

  • The software applications are like actors who perform their scenes.
  • The hardware is the set — cameras, lights, microphones, and special effects equipment.
  • The OS is the director, providing the actors with a clear script and handling the technical details behind the scenes.

The actors don’t need to know how the cameras work — they follow the director’s guidance. Similarly, software developers write programs that follow the OS’s “rules,” and the OS makes sure those programs can use the hardware correctly and efficiently.

Every computer stores all kinds of data — from system files that keep the OS running to personal documents, spreadsheets, photos, and videos. But have you ever wondered how all this data is organized on your hard drive? Is it just a random jumble of bits and bytes?

Thankfully, it’s not. The Operating System (OS) gives structure to everything stored on a computer, so you can easily find, open, and manage your files.

The OS uses a structured system of directories (often called folders) to organize data in a logical, hierarchical manner. It all starts with the root directory — usually represented by a drive letter like C: on Windows computers. From there, it branches out into folders and subfolders, much like the branches of a tree.
That’s why this structure is often called a directory tree. For example:

C:\
├── Documents
│ ├── Projects
│ └── Reports
├── Pictures
│ └── Vacation
└── Music
└── Playlists

No matter where your data physically sits on the hard drive, the OS catalogs it logically using this folder system. That way, when you open a file or search for something, the OS knows exactly where to look — even though the data might be stored in multiple places on the disk.

This organized system helps:

  • Users easily locate and manage their files
  • Applications quickly access the data they need
  • The OS keeps track of what files belong to which programs

Without this structure, data would be scattered, and your computer would take far longer to find or open files.

Think of the OS as the librarian of a massive digital library.

  • Each file is like a book,
  • Each folder is like a bookshelf, and
  • The directory tree is like a library’s catalog system, telling exactly where every book is stored.

When you search for a document or picture, the OS doesn’t wander aimlessly — it checks its organized catalog, finds the exact “shelf,” and hands you the file within seconds. Without the OS’s filing system, your computer would be like a library with no shelves, no catalog, and books piled randomly everywhere — impossible to manage.

An important job of the Operating System (OS) is to keep an eye on how well your computer’s hardware is performing. Just as you might check your pulse or temperature to see how healthy you are, the OS monitors the system’s “vital signs,” providing insights into how efficiently the computer is running.

Modern operating systems continuously track hardware activity and performance. They can show you:

  • How busy the CPU is,
  • How quickly the hard drive reads and writes data,
  • How much memory (RAM) is being used, and
  • How much data is your network card sending and receiving?

This information helps users and system administrators understand whether the computer is performing normally or if something might be slowing it down or causing it to start failing.

Different operating systems provide various tools to help monitor system health.

  • While Windows uses Performance Monitor to track system activity, other operating systems have their own tools for monitoring system health:
  • macOS uses Activity Monitor, which shows CPU, memory, disk, and network usage in real time.
  • Linux and Ubuntu systems often use terminal-based utilities such as top, htop, or vmstat to display live performance data.
  • Some Linux distributions also include graphical tools, such as GNOME System Monitor, for easier viewing.

These tools serve the same purpose — helping users and administrators keep an eye on how their system hardware is functioning and quickly spot potential issues.

Seeing numbers on a screen is one thing — knowing what they mean is another. For example, if your computer shows that 20% of memory is being used, is that good or bad? Usually, it’s not a problem unless that number was always 10% and suddenly doubled with no significant changes in what you’re running.

To interpret performance correctly, administrators often set up a baseline — a record of what normal performance looks like for key components such as the CPU, memory, hard drive, and network. When the system begins to behave differently, they can compare the current data to the baseline to assess the severity of the issue.

  • Imagine your computer as a car, and the operating system as its dashboard and onboard computer.
  • The CPU meter is like the tachometer, showing how hard the engine is working.
  • Memory usage is like a fuel gauge, indicating how much capacity is left.
  • The hard drive speed is like how smoothly your gears shift, and
  • The network performance is like how fast you’re moving on the road.

If one gauge starts behaving strangely — say the temperature suddenly rises — it’s a sign that something might be wrong. Similarly, when the OS detects unusual spikes or drops in system performance, it warns you before minor issues become big problems.

By regularly monitoring system health, the operating system helps keep your computer running efficiently. It alerts you when maintenance is needed — just like a well-tuned car that stays reliable because its performance is watched closely.

That’s how modern operating systems evolved — from depending on programs to cooperate, to managing everything efficiently on their own, while handling larger and more powerful hardware. From coordinating hardware and managing data to monitoring performance and keeping everything secure, the Operating System truly is the brain of the computer — quietly ensuring that every part works together in harmony so users can focus on what they need to do, not how it all happens.