01What Exactly Is an Operating System?

When you turn on your computer, you see the desktop, windows, taskbar, and folders. These interfaces are important, but the operating system is not just "what the desktop looks like."

An Operating System (OS) is a complete set of system software. It works between hardware and applications, responsible for managing many low-level resources and providing a unified running environment for applications.

You Click, type, open programs
Applications Browsers, games, drawing software
Operating System Manages resources, devices, and program execution
Hardware CPU, memory, storage, peripherals, etc.

02How Does It Manage Hardware?

CPU, memory, storage devices, and various peripherals are all limited resources. The operating system needs to decide who can use them, when, how much, and how to share them safely.

CPU Processor

CPU

Arranges for different programs to get processor time

Memory

Allocates and reclaims memory space for programs

Storage Device

Storage

Organizes and accesses data in files

Devices

Coordinates input/output for keyboards, mice, networks, etc.

03How Does It Make Programs Run?

When you double-click a program, the operating system doesn't simply "open the icon." It participates in finding the program file, creating a running program instance, and preparing memory and other resources.

1

You Issue a Launch Request

For example, double-clicking a program icon

2 Program files stored on disk

Find Program Files

Read required content from storage devices

3

Prepare Running Environment

Create processes and map/allocate required memory

4 CPU starts executing program instructions

CPU Execution

The program begins to actually run

04How Does It Help Us Manage Files?

Hard drives or SSDs are only responsible for storing large amounts of data. The reason we see "file names, folders, paths" is because the operating system uses a file system to organize this data.

Storage Device

Stores large amounts of data blocks

File System

Records information about files, directories, locations, etc.

Files and Folders We See

Can be accessed by name and path

For example: C:\Homework\math.txt or /home/student/math.txt

Different operating systems may use different file systems and path formats, but the idea of "organizing stored data with a file system" is common.

05How Does It Interact with Keyboards, Mice, and Screens?

Applications usually don't directly control the electronic details of every hardware device. The operating system communicates with hardware through device drivers.

Application

Makes requests like "read input" or "display content"

Operating System

Manages device access uniformly

Driver

Knows how to communicate with specific devices or device classes

Hardware Device

Keyboards, mice, graphics cards, network cards, etc.

06Why Can Many Programs Run at the Same Time?

You might listen to music, do homework, and have a browser open at the same time. These programs appear to be "running simultaneously," partly because the operating system performs task scheduling.

Music
Document
Browser

OS Scheduling

Arranges which threads get CPU time when

CPU Processor

CPU

Quickly switches and executes tasks

07Is the Operating System the "Big Manager" of the Computer?

Calling the operating system the "big manager of the computer" is a good introductory analogy, but this analogy has its limits.

Where This Analogy Helps

  • It manages many hardware resources
  • It's responsible for starting and managing programs
  • It organizes file and device access
  • It coordinates multiple task execution

But Don't Misunderstand It As

  • The operating system thinks like a human
  • All program logic is determined by the operating system
  • Hardware only works when the operating system "gives orders"
  • The operating system equals the desktop, windows, and icons

What You've Learned

  • The operating system is a set of system software, not just desktops and windows.
  • It's responsible for managing resources like CPU, memory, storage, and various devices.
  • It helps applications start, run, and terminate.
  • It organizes files and directories in storage devices through the file system.
  • It communicates with hardware devices through mechanisms like drivers.
  • It performs task scheduling, allowing multiple programs to share CPU resources.
  • The operating system is not a "thinking brain" but software that manages resources and provides system services.

Next Question: The operating system is already running, so why do we see desktops, icons, and individual windows? Next article: Why Do Computers Have Desktops and Windows?