seegongsik
Saved words
seegongsik
Operating system · how a computer keeps house

The computer's housekeeper

Many apps share a single part. The housekeeper that arranges who uses what, and when, is the operating system.

17 / 17
01What is an operating system?
The housekeeper between apps and hardware that shares the parts around.
02What happens when a program runs?
A program is a file at rest; a process is it running, alive. Each gets its own memory.
03One pretending to be many
Just one worker, but switching so fast that many seem to run at once.
04Stopping and picking back up
Saving and restoring state when work switches, and what it costs
05Deciding who goes first
Setting the order of waiting tasks, and the trade between speed and fairness
06Many strands in one task
Splitting a task into strands sharing one space, its upside and its care
07Many kitchens, truly at once
Handling work truly at once with several cores, its speed and its limit
08When two fix the same thing at once
The accident from fixing the same thing at once, and preventing it one at a time
09Memory bigger than what's real
Each process gets its own pretend addresses, so it seems to use a large memory alone. Pretend maps to real spots; unused parts go to disk, frequent ones stay close.
10The wall between mine and yours
Not a blocking wall, but the result of each process having a different map with no path between them. An out-of-map address is caught and stops only that program, so one crash doesn't spread.
11Getting on speaking terms with any device
The OS uses each device's driver (a translator) to turn its standard language into device signals. A new device just needs its driver; a slow one taps with an interrupt when done.
12The File System: The Tree-Shaped Illusion Over a Flat Disk
A disk is just flat, numbered cells. The operating system binds files with a name and a map, and raises a folder tree from files that hold files.
13Permissions: One Shared Tree, Who May Do What
When many share one tree, the operating system sets an owner and rights (read, write, execute) on each file. The administrator is a master key above those rules.
14System Calls: the Official Counter Where a Program Asks the OS
A program cannot touch hardware directly inside its fence (user mode). To get work done it asks at the official counter (a system call); crossing it briefly flips to kernel mode, which checks permission and then does the work.
15The Kernel: the Operating System's Core That Governs Everything
Behind the system-call counter, the kernel is the core program that actually does the work. It stays in memory from boot to shutdown, governing CPU, memory, devices, files and permissions; if the kernel stops, the whole system stops.
16When Nobody Yields: Deadlock
Taking a resource one at a time is safe, but if two each hold one and wait for what the other holds, both freeze forever. It clears when someone yields or an order is fixed for grabbing.
17Booting: One Power Press, and Everything You Learned Walks On Stage
Press power and a small startup program (firmware) wakes, loads the kernel into memory, and the kernel starts the first process, on top of which apps stack up. In this one moment everything learned in this area walks on stage in order.
Was this helpful? Support seegongsik