FoundationLesson 1 of 4 in IntroductionFree preview

What an OS Does

An operating system (OS) is the program that sits between your applications and the hardware. It has two jobs:

  1. Resource manager. It shares the CPU, memory, disk and devices between many programs, fairly and safely.
  2. Extended machine. It hides messy hardware behind clean abstractions: files instead of disk sectors, processes instead of raw CPU registers, sockets instead of network cards.

The core of the OS that is always in memory is the kernel. Everything else (shell, compilers, editors) is a user program, even if it ships with the OS.

OS functionWhat it manages
Process managementCreating, scheduling and ending processes
Memory managementWho gets which part of RAM
File managementFiles, directories, permissions
Device (I/O) managementDrivers, buffering, interrupts
Protection and securityStopping one program from harming another

The trap: the shell and the GUI are not the kernel. They are user programs that talk to the kernel through system calls.

In interviews: "What is an OS?" Answer in one line ("software that manages hardware resources and provides services to programs"), then name two or three functions from the table.

Practice

Solve 3 of 3 to complete this lesson.

0/3 solved

Solve 3 more to complete this lesson, or move on and come back later.

Skip to next: User vs Kernel Mode