44 total
By the end of this topic, you should be able to:
An operating system (OS) is a large piece of software that acts as a bridge between the user, the applications they run, and the physical hardware of the computer. Without an OS, a user would need to write extremely complex instructions just to do something as simple as save a file or print a document. The OS handles all of this behind the scenes.
Think of the OS as a manager in a large office. The office has many workers (hardware components like the CPU, memory, printer, and keyboard), and the manager makes sure every worker is given the right task at the right time, that no two workers clash, and that the office runs efficiently.
The three main resources the OS manages are:
When you switch on a computer, the very first thing that happens is a tiny program called the bootstrap program runs. This program is stored in a chip called the BIOS (Basic Input/Output System), which is found in ROM (Read-Only Memory) — a type of memory that keeps its contents even when the power is off. The bootstrap program's job is to load the operating system from the hard drive (or flash storage, on phones and tablets) into RAM so the computer can begin working properly.
On tablets and smartphones, the OS is often stored in flash memory — a special type of storage that is divided into two sections: one read-only section that holds the OS itself, and a second section where apps and user data are stored.
The kernel is the most important part of the operating system. It is the central component that sits between all software (applications) and the physical hardware. Every time a program wants to use a piece of hardware — for example, when a word processor wants to save a file to disk — it must ask the kernel for permission and assistance. The kernel then communicates directly with the hardware to make it happen.
The kernel is responsible for five key areas:
The CPU can only execute one instruction at a time, yet modern computers appear to run dozens of programs simultaneously. This illusion is created through scheduling — the process by which the OS rapidly switches the CPU's attention between different programs (called processes), giving each a very short burst of time in turn. Because this switching happens so fast (millions of times per second), it appears as though everything is running at the same time.
RAM is limited. The OS must carefully allocate portions of RAM to each active program. If RAM becomes full, the OS can use a technique called virtual memory (explained in detail later) to temporarily move less-used data onto the hard drive, freeing up space in RAM for more urgent tasks.
Input/output devices such as keyboards, printers, and hard drives operate much more slowly than the CPU. If the CPU had to wait for every I/O operation to complete before doing anything else, it would waste enormous amounts of time doing nothing.
To solve this, the OS uses two key techniques:
Device drivers are small software programs that the OS uses to communicate with specific hardware devices. Each type of device (printer, keyboard, graphics card) has its own driver that acts as a translator between the OS and that device.
Direct Memory Access (DMA) is a feature that allows certain hardware devices to transfer data directly to and from RAM without needing the CPU's involvement for every step. Here is how it works step by step:
This makes the system much more efficient because the CPU is not wasted sitting idle while data moves from one place to another.
Sign in to view full notes