Menu
Theme

Form 1
Course Content
View Overview

Key Concepts

Operating Systems

Habari Mwanafunzi! Welcome to the Engine Room of the Computer!

Ever wondered how your computer can play a song from Boomplay, let you type your assignment in Microsoft Word, AND receive WhatsApp notifications all at the same time? It's not magic! It's the work of a very busy and clever manager inside your computer called the Operating System (OS). Think of the OS as the head prefect of a school, the conductor of a matatu, or the manager of a busy supermarket. It's the "mkubwa" that makes sure everything runs smoothly.

Today, we are going to look under the hood and understand the four main jobs, or key concepts, that every OS must handle. Let's get started!


1. Process Management: The Art of Juggling Tasks

In computer language, a program that is currently running is called a process. When you double-click the VLC icon to watch a movie, you start a process. When you open Chrome to browse, that's another process. The OS's job is to manage all these running processes, just like a teacher marking a pile of exercise books from different students.

A process goes through different stages in its life. We call this the Process Life Cycle.


    +-------+       +-------+       +---------+
    |  New  | ----> | Ready | ----> | Running |
    +-------+       +-------+       +---------+
         ^               |               |
         |               |               |
         +---------------+---------------+
                 |      (Interrupt)      | (I/O or Event Wait)
                 v                      v
             +---------+          +---------+
             | Terminated| <-------- | Waiting |
             +---------+          +---------+

  • New: The process is being created. (You just double-clicked the icon).
  • Ready: The process is waiting in a queue, ready to be given time on the CPU. (Like a patient at the clinic waiting to see the doctor).
  • Running: The CPU is actively executing the process's instructions. (The doctor is attending to you now!).
  • Waiting: The process is waiting for something to happen, like for a file to download or for you to type something. (The doctor asked you to go for a lab test and is waiting for the results).
  • Terminated: The process has finished its job. (You have been treated and are leaving the clinic).
Real-World Example: A Cyber Café
Imagine you are at a busy cyber café in town. The attendant (the OS) is juggling multiple customers (processes). One customer is printing a document (a process in a 'Waiting' state for the printer). Another is actively browsing Facebook (a 'Running' process). You are waiting for a computer to become free (a 'Ready' process). The attendant has to be smart and give each customer a little bit of time so everyone gets served. This is called scheduling.

2. Memory Management: The Matatu Conductor's Skill

Your computer has a workspace called Random Access Memory (RAM). It's like a temporary desk where you put the books you are currently using. RAM is super-fast but limited in space. The OS's job is to manage this space very carefully.

Think of RAM as a 14-seater matatu and programs as passengers. The OS is the conductor ("makanga").

  • When you start a program (a passenger wants to board), the OS finds an empty seat (a free block of memory) for it.
  • It keeps track of which seats are taken and which are free.
  • When you close the program (a passenger alights), the OS frees up that seat for the next passenger.
  • If the matatu is full, some passengers might have to wait! This is what happens when your computer slows down with too many programs open.
Image Suggestion:

A colourful, cartoon-style illustration of a Kenyan matatu. The conductor (labeled 'Operating System') is skillfully directing various passengers (labeled 'Chrome', 'Word', 'Music App') into specific seats (labeled 'Memory Blocks'). The matatu is labeled 'RAM'. The scene is vibrant and orderly despite the busyness.

How does the OS fit these "passengers" in? It often breaks big programs into smaller, equal-sized pieces called pages. This makes it easier to fit them into any available memory space.

Let's do some simple math!

If a program is 10 Kilobytes (KB) in size and the OS uses a page size of 4KB, how many pages will the program be divided into?


    Total Program Size = 10 KB
    Page Size = 4 KB

    Number of Pages = Total Size / Page Size
                    = 10 / 4
                    = 2.5

    Since we can't have half a page, the OS will create 3 pages.
    - Page 1: 4 KB
    - Page 2: 4 KB
    - Page 3: 2 KB (The last page is not full, this is called internal fragmentation)

3. File Management: The Super-Organised Librarian

All your precious documents, photos, music, and videos are stored as files. The OS is like a master librarian, responsible for organising everything on your hard disk, flash drive, or memory card so that you can find it easily.

The OS manages:

  • File Creation & Deletion: Letting you create new folders or delete that photo you don't like.
  • Organisation: Using a hierarchy of folders (or directories) to keep things tidy. Think of your "Documents" folder, which might have a "School" folder inside it, which in turn has a "Computer Studies" folder.
  • Access Control: Deciding who can read, write, or delete a file. This is crucial for security!

This organisational structure is called a File System. Windows typically uses NTFS, while Android phones use a system based on Linux's ext4.


A typical file path in Windows looks like this:

C:\
 └── Users\
      └── Juma\
           ├── Documents\
           │    └── KCSE_Revision_Notes.docx
           └── Music\
                └── Sauti_Sol\
                     └── Live_and_Die_in_Afrika.mp3
Kenyan Example: Your Music Collection
Think about how you organise music on your phone or computer. You probably create folders for different artists or genres like "Gospel," "Gengetone," or "Bongo Flava." When you move a song from one folder to another, or rename it, it's the Operating System (like Android or Windows) that is doing all the hard work of updating its "catalogue" so it knows where the file is.

4. Device Management: The Ultimate Translator

Your computer has many parts connected to it: the keyboard, mouse, printer, speakers, webcam, and so on. These are called I/O (Input/Output) devices. These devices don't speak the same language as the CPU.

The OS acts as a translator and traffic controller. It uses special mini-programs called drivers for each device. A printer driver knows how to talk to the printer, a mouse driver knows how to interpret clicks and movements.


                 +-----------------+
                 |  Your Programs  |
                 | (Word, Chrome)  |
                 +-----------------+
                         |
                         V
    +-------------------------------------------+
    |           OPERATING SYSTEM (OS)           |
    | (The Manager)                             |
    |                                           |
    |  [Keyboard  [Mouse   [Printer  [Speaker   |
    |   Driver]   Driver]   Driver]    Driver]   |
    +-------------------------------------------+
         |           |           |           |
         V           V           V           V
    +----------+ +-------+ +---------+ +---------+
    | Keyboard | | Mouse | | Printer | | Speaker |
    +----------+ +-------+ +---------+ +---------+
Real-World Example: Using M-Pesa
When you want to send money using M-Pesa on a smartphone, a lot happens! 1. You tap the screen (Input Device). 2. The OS (Android/iOS) tells the M-Pesa App what you tapped. 3. The App communicates with the phone's network hardware (another device). 4. The OS manages this communication. 5. When the transaction is successful, Safaricom's system sends a message back. 6. The OS receives this message and displays it on your screen (Output Device) as an SMS. The OS is the silent partner managing this entire conversation between all the different hardware parts!

Conclusion: The Unseen Hero

So there you have it! The four main jobs of the Operating System are Process Management, Memory Management, File Management, and Device Management. Without the OS, your powerful computer would just be a box of useless electronics. It's the master manager that brings everything to life.

Next time you're effortlessly listening to music while typing an essay, take a moment to appreciate the hard-working OS, the true "head prefect" of your computer, making everything happen just for you. Keep exploring!

Pro Tip

Take your own short notes while going through the topics.

Previous Key Concepts
KenyaEdu
Add KenyaEdu to Home Screen
For offline access and faster experience