Not sure which lesson to do first? Find your level and get a plan →

CS Thinking · Systems, Networks & Impact · Grade 6-8

Operating System

System software that manages hardware resources (processor, memory, storage, devices) and provides services for application programs.


Quick Answer

System software that manages hardware resources (processor, memory, storage, devices) and provides services for application programs. It starts first when a device turns on and keeps running until it shuts down. It decides which app gets the processor and for how long, gives each app its own part of memory, saves and finds files, talks to devices like the camera and printer, and blocks apps from things they are not allowed to touch. Apps never control the hardware directly; they ask the OS.

Why This Matters

The OS is why one app can run on thousands of different phone models: the app asks the OS to save a photo, and the OS deals with whichever storage chip that phone has. It also explains everyday behaviour: why a phone slows down with 30 apps open, why an app must ask before using the camera, and why an OS update matters for security even when every app is up to date.

Intuitive Explanation

Imagine a school with one gym, one library and hundreds of students. Without an office handing out timetables and room bookings, everyone would rush for the gym at once. The operating system is that office for a computer. The processor is the gym: only a few programs can use it at any instant, so the OS gives each one a short turn, a few milliseconds long, then switches. It switches so fast that music, a browser and a game all seem to run at the same time.

The OS hands out other resources too. Memory: each app gets its own space, and the OS stops one app reading another's. Storage: when an app saves a file, the OS decides where on the drive it goes and remembers where it put it. Devices: the OS holds drivers, small programs that know how to talk to a particular printer or camera, so apps do not have to. Permissions: an app that wants the microphone must ask the OS, and the OS asks you.

An operating system is not an app, even though its home screen can look like one. A browser or a game is an application: it does one job for you and depends on the OS to run. Closing every app does not stop the OS; it keeps managing the hardware in the background. And the phone or laptop itself is the whole computing system, in which the OS is one layer of software.

Think of it like this. The OS is like an air traffic controller at a busy airport. Planes (apps) cannot take off whenever they like; the controller gives each one a runway slot (processor time), a gate (memory) and permission to land. Pilots never steer the runway themselves. One difference: the OS switches between apps thousands of times a second, far faster than any airport.

Core idea. The OS abstracts hardware complexity so applications don't need to know the details of every device — they just ask the OS.


When to Use

Think about the operating system when a question is about managing the processor, memory, files or devices, apps running at the same time, app permissions, or the software layer between apps and hardware. Names like Windows, macOS, Linux, Android and iOS are signals. If the question asks about one app's own features, it is about an application; if it asks about the physical parts, use Hardware & Software; if it asks how a device talks to other devices, use Network.

Tip. Ask: Is the question about the software that shares the processor, memory, files and devices among apps, rather than one app itself?

How to Recognize It

Before you name the operating system, work out which program the problem is really about and what job it is doing.

  1. Does the program decide which app runs on the processor, or how much memory each app gets?

    Yes is the operating system's job. If the program does one task for you, such as editing photos, it is Application Software, not the OS.

  2. Is it still running when every app is closed?

    Yes fits the operating system, which runs from start-up to shutdown. An app stops when you close it, so a no points back to Application Software.

  3. Is the problem about how the screen looks, such as icons, menus and buttons?

    Yes points to User Interface. The home screen is a face the OS shows you, but the OS also works where no one can see.

  4. Is the problem about whether a file survives when the power goes off, or how much room is left?

    Yes points to Storage, the hardware that keeps files. The OS only organizes those files and finds them for apps.

Operating System vs Application Software vs User Interface vs Storage

The OS hides behind apps, icons and saved files, so students often name one of those instead. Ask which piece manages the others and which ones just use or show what it manages.

Operating System

Meaning
An operating system is system software that manages the processor, memory, storage and devices and gives apps a way to use them.
Key test
It runs underneath everything and hands out the hardware to apps.
Example
When a phone game and a music app run at once, iOS gives each one processor time and memory.

Application Software

Meaning
Application software is a program that does a particular task for the user, such as browsing, drawing or messaging.
Key test
It does one job for you and asks the OS for hardware.
Example
A drawing app asks the OS to save your picture instead of writing to the disk itself.

User Interface

Meaning
A user interface is the screens, buttons, menus and gestures through which a person controls a device or program.
Key test
It is what you see and touch, not the manager underneath.
Example
The grid of icons on a tablet's home screen is a user interface.

Storage

Meaning
Storage is the hardware that keeps files and installed programs even when the power is off.
Key test
It holds data; the OS decides where files go and finds them again.
Example
A 256 GB SSD in a laptop holds the OS itself, the apps and the photos.

Formula & Notation

Worked Examples

Example 1 — What the OS does when you take a photo

Easy

You open the camera app, take a photo, and it is saved. List what the operating system does at each step.
Show the steps and the answer
  1. Opening the app: the OS copies the camera app from storage into memory and gives it turns on the processor.

    Apps sit in storage when not in use, and the processor can only run what is in memory.

  2. Taking the photo: the app asks the OS for the camera; the OS checks the app has permission, then uses the camera's driver to get the image.

    Apps never control hardware directly, which is how the OS can block an app you never allowed to use the camera.

  3. Saving: the app asks the OS to save IMG_204.jpg; the OS picks free space on the storage chip and records where the file is.

    That record is how the gallery app finds the same photo later without knowing anything about the chip.

Answer: The OS loads the app into memory and schedules it on the processor, checks camera permission and runs the camera driver, then stores the photo and records where it is.

Takeaway: Behind every app action is a request to the OS, which handles the hardware on the app's behalf.

Example 2 — Operating system or application?

Standard

Sort these into operating system or application: (a) Android; (b) a web browser; (c) the part of Windows that decides which program uses the processor next; (d) a photo-editing app; (e) iOS asking 'Allow this app to use your location?'
Show the steps and the answer
  1. (a) Android and (e) the location prompt belong to operating systems.

    Android is a whole OS; the prompt is iOS guarding the GPS hardware on behalf of every app.

  2. (c) The part that picks which program runs next, the scheduler, is part of the OS.

    Sharing out the processor among programs is the OS's core job; no single app could do it for all the others.

  3. (b) The browser and (d) the photo editor are applications.

    Each does one job for the user and depends on the OS to run; uninstall them and the device still works.

Answer: Operating system: (a), (c), (e). Applications: (b), (d).

Takeaway: If it manages hardware or other programs, it is the OS; if it does a task for you on top of the OS, it is an application.

Example 3 — Find the mistake: 'no apps open, so no OS'

Application

Jay's laptop is slow with 25 browser tabs, a game and a video editor open. He closes all of them and says: 'Now nothing is running at all, so the operating system is switched off too.' Find the mistake.
Show the steps and the answer
  1. Look at the screen after closing everything: the desktop, the clock and the Wi-Fi icon are still there.

    Something is still drawing the desktop and keeping time, and that something is the OS.

  2. Plug in a USB drive: a window pops up showing its files.

    Recognising a new device and reading its files is OS work, so the OS is clearly running.

  3. Explain the speed-up: closing the apps freed memory and processor time that they had been using.

    The apps were competing for resources the OS shares out; the OS itself keeps running until the laptop is shut down.

Answer: The OS is still running: with no apps open it keeps managing the hardware, drawing the desktop and handling devices. It stops only when Jay shuts the laptop down.

Takeaway: Apps come and go on top of the OS; the OS runs from start-up to shutdown.

Where You'll See It

  • A substitute teacher running a classroom

    The OS is like a manager who decides which student (program) gets to use the one shared whiteboard (the processor) and for how long, so everyone gets a turn without chaos.

  • Opening many apps at once on a phone

    You can have music, a browser, and a game open together because the OS shares the processor and memory among them and switches between them fast — that's multitasking the OS handles.

  • Saving a file without knowing the disk's details

    When an app saves a photo, it just asks the OS to store the file; the app doesn't need to know whether you have an SSD or a hard drive, because the OS abstracts the hardware.

Common Mistakes

  1. The slip: Closing all your apps shuts down the operating system.

    Why it's tempting: With no apps visible, it looks like nothing is running.

    Instead: The OS keeps running in the background managing hardware even with no apps open; it only stops when you shut the device down.

  2. The slip: The operating system is just another app like a browser or game.

    Why it's tempting: You interact with it through a desktop or home screen, which looks app-like.

    Instead: The OS is system software that runs underneath all apps and manages them; apps depend on the OS, not the other way around.

  3. The slip: OS updates are optional annoyances you can skip indefinitely.

    Why it's tempting: Updates interrupt your work and the system seems fine without them.

    Instead: OS updates often patch known security holes; skipping them leaves the whole system vulnerable, because the OS controls access to all the hardware and files.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Match each event to the operating system job it shows (processor, memory, storage or devices): (a) a new folder called Homework appears, (b) a printer starts printing, (c) a music app and a browser take turns on one CPU, (d) a game is given 2 GB of RAM.

    Hint: Ask which resource is being shared out or organised in each event.

  2. An operating system runs apps A, B and C on one processor core, giving each a 10 ms turn in the order A, B, C, A, B, C, and so on. Which app is running at 35 ms? How many turns has A had by 60 ms?

    Hint: Write out the time slots: 0-10 ms, 10-20 ms, and so on.

  3. A laptop has 8 GB of RAM. The operating system uses 2 GB and a browser uses 3 GB. A video editor asks for 4 GB. Can the operating system give it all 4 GB at once? What could it do?

    Hint: Subtract what is already in use from the total memory.

  4. Which of these are operating systems and which are applications: Android, a photo editor, Windows, a calculator app, macOS?

    Hint: Which ones start first when the device turns on and let other programs run?

  5. Kim asks: "Why can I play music saved on my laptop while I type an essay on the same laptop?" Is this best explained by the operating system, or by a network?

    Hint: Is a second device involved, or is one device sharing its parts between programs?

  6. Ana says: "I closed every app, so the operating system has stopped running too." Why is she wrong, and what is still running?

    Hint: What draws the desktop and reacts when you move the mouse?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why can't I run an iPhone app on an Android phone?

Apps are written to ask one particular operating system for what they need, such as the camera, files or the screen. iOS and Android answer those requests in different ways, so an app built for one does not know how to talk to the other. That is why developers often make two versions of the same app, or use tools that build both versions from one set of code.

What actually happens when I press the power button?

A small program stored on a chip, called firmware, runs first and checks the hardware. It then finds the operating system in storage and loads it into memory. This is called booting. Once the OS is running, it starts its background services and shows the lock screen or desktop. Only then can you open apps, which is why a phone takes a few seconds before it is ready.

Does a smartwatch or a car have an operating system?

Most do. A smartwatch runs a small OS such as watchOS or Wear OS, and many cars run an OS for the touchscreen in the dashboard. Some very simple gadgets, like a basic microwave, skip the OS completely: one program runs on the chip and does only that job. You need an OS when several programs must share the same hardware.

Why does my phone ask me before an app can use the camera?

Apps cannot reach the camera, microphone or location directly; they must ask the operating system. That gives the OS a chance to check whether you have allowed it. When you tap Allow or Don't Allow, you are setting a rule that the OS enforces every time the app asks again. This is one way the OS protects you from apps that want more than they need.

Learning Path

← Before

Computing System
Operating System

You are here

Next →

Network
You should know Computing System: hardware, software and data working as input, process and output. The operating system adds the layer of system software that shares the hardware among programs, stores files and guards permissions. Next, Network shows how computing systems connect to each other; the OS is also the software that runs a device's network connection.

See Also