Introduction to Operating Systems
From the Operating system curriculum
Introduction to Operating Systems
TL;DR
An operating system (OS) is the essential software that manages your computer's hardware and software resources. It creates a user-friendly environment, letting you run programs and interact with your device without needing to understand complex details. The OS handles tasks like running multiple programs at once, managing files, and connecting to devices.
1. The Mental Model
Think of an OS as the conductor of an orchestra. It doesn't play the instruments itself, but it directs everything, ensuring all parts work together harmoniously to produce the final performance (your computer experience).
2. The Core Material
An OS acts as an intermediary between you (the user) and the computer hardware. Without an OS, your computer would just be a collection of inert components. It provides a platform for other software, like web browsers or word processors, to run.
Here's what an OS primarily does:
a. Resource Management

Photo by Ann H on Pexels
The OS manages all of your computer's resources:
* CPU (Central Processing Unit): It decides which program gets to use the CPU and for how long, ensuring multiple programs can appear to run simultaneously (this is called multitasking).
* Memory (RAM): The OS allocates memory to running programs, making sure they don't interfere with each other's data and have enough space to operate.
* I/O Devices (Input/Output): It handles communication with devices like your keyboard, mouse, printer, and hard drive. When you type something, the OS processes that input. When you print, the OS sends data to the printer.
b. Process Management

Photo by Tima Miroshnichenko on Pexels
A process is an instance of a running program. The OS is responsible for:
* Creation and termination: Starting and stopping programs.
* Scheduling: Deciding which process runs next on the CPU.
* Synchronization and communication: Allowing processes to work together and share information if needed.
c. File Management

Photo by Zulfugar Karimov on Pexels
The OS provides a structured way to store and retrieve information on storage devices (like your hard drive or SSD). It handles:
* File creation, deletion, and modification: Letting you manage your documents, images, and other data.
* Directory/Folder organization: Grouping related files.
* Access control: Setting permissions to protect files from unauthorized access.
d. User Interface (UI)

Photo by Egor Komarov on Pexels
The OS provides a way for you to interact with the computer. This can be:
* GUI (Graphical User Interface): What most people are familiar with—windows, icons, menus, and pointers (e.g., Windows, macOS, Android).
* CLI (Command Line Interface): Text-based interaction where you type commands (e.g., Linux terminals, PowerShell).
Here's a simple flow of how you interact with an application through the OS:
graph TD
User["You (User)"] --> |"Launches App (e.g., clicks icon)"| Application["Application (e.g., Web Browser)"]
Application --> |"Requests Resources (e.g., memory, CPU time, file access)"| OperatingSystem["Operating System (OS)"]
OperatingSystem --> |"Manages & Allocates"| Hardware["Hardware (CPU, RAM, Disk, Network)"]
Hardware --> |"Provides Resources/Performs Actions"| OperatingSystem
OperatingSystem --> |"Returns Results/Data"| Application
Application --> |"Displays Output/Interaction"| User
e. Security and Protection
The OS implements security measures to protect your system from unauthorized access and malicious software. This includes user authentication, file permissions, and firewall services.
3. Worked Example
Imagine you want to open a Word document, edit it, and then save it.
- You click the Word icon: This tells the OS to create a new process for Microsoft Word.
- Word starts: The OS allocates memory (RAM) for Word to load its program code and your document's data. It also schedules CPU time for Word's process.
- You open a document: Word asks the OS to access the file system to locate and read your document from the hard drive. The OS verifies you have permission to access that file.
- You type: Your keyboard sends input to the OS. The OS then passes this input to the Word process, which displays the characters on your screen.
- You save the document: Word asks the OS to write data to the hard drive. The OS manages the disk space, ensuring your changes are saved correctly and safely.
- You close Word: The OS terminates the Word process, reclaiming all the memory and CPU time it was using, making those resources available for other tasks.
4. Key Takeaways
- An OS is fundamental software that acts as a bridge between you, applications, and hardware.
- It's responsible for managing critical computer resources like the CPU, memory, and I/O devices.
- The OS handles process management, allowing multiple programs to run efficiently and concurrently.
- File management is a core function, organizing and protecting your data on storage.
- It provides the user interface (GUI or CLI) through which you interact with the computer.
- The OS includes security features to protect your system and data.
- Without an OS, your computer hardware can't be used to run applications.
Common Mistakes to Avoid:
- Confusing an OS with application software (like confusing Windows with Microsoft Word).
- Thinking that an OS only has a graphical interface; many servers use command-line interfaces.
- Underestimating the complexity an OS handles; it makes complex operations seem simple.
- Believing that an OS is only for desktop computers; smartphones, tablets, and even smart appliances have OSes.
5. Now Try It
Spend 15 minutes exploring the "Task Manager" (Windows) or "Activity Monitor" (macOS). Pay attention to the "Processes" or "CPU" and "Memory" tabs. See how many different processes are running and how the OS is allocating resources to them, even when you're just browsing the web. What happens to the resource usage when you open a new program or close an old one?
Frequently asked about Introduction to Operating Systems
Get the full Operating system curriculum
Clone the complete plan to your dashboard for unlimited AI-generated notes, practice quizzes, and a personalised revision schedule.
Create Free Account