Level 0 · Module 2

What an OS does

Understand how an operating system manages hardware and gives applications shared services.

Difficulty
beginner
Time
9 min read
Prerequisites
How computers work
Reading progress0% read

Not completed

By the end, you can

  • Describe the operating system as a manager between applications and hardware.
  • Identify resources and services an operating system coordinates.
  • Trace a simple application request through the operating system.

Summary

An operating system, or OS, manages a computer’s hardware and provides common services to applications. It decides how programs share the CPU, memory, storage, and devices.

Introduction

Without an operating system, every application would need to know how to control every keyboard, disk, and screen itself. The OS provides a stable layer between programs and the machine.

Explanation

The OS starts programs, schedules CPU time, assigns memory, organizes files, controls devices, and enforces access rules. Applications ask for these services instead of directly taking control of hardware. Windows, macOS, Linux, Android, and iOS make different design choices, but all perform these core jobs.

Real-world example

Playing a song

A music app asks the OS to read a song file. The OS locates the file, moves data through memory, gives the app CPU time, and sends audio to the selected output device. The app does not need to know the electrical details of the storage drive or speakers.

Follow one request

os-request.txttext
music app: "read song.mp3"
      ↓ request
operating system: check access → find file → use storage driver
      ↓ result
music app: receives song data

Code example

os-services.txttext
start program     → process management
request memory    → memory management
open file         → file-system service
play sound        → device service

Common mistakes

  • Thinking the OS is only the desktop, icons, and windows you see.
  • Assuming an application normally controls hardware without OS mediation.
  • Treating the OS and the computer’s physical components as the same thing.

Quiz

Knowledge check

A drawing app saves an image. Which description best matches the OS's role?

Try it

Name the manager

For a video call, list one job the app performs and three resources the operating system manages.

Key takeaways

  • The OS sits between applications and hardware.
  • It manages CPU time, memory, files, devices, and access.
  • Programs request OS services instead of reimplementing hardware control.
View module overview