Index

Module 03 · How Computers WorkMany programs, one machine

The drawer that says it saved

IO Interrupts and the Bus
IO Interrupts and the Bus · Open board

A slow device and a fast chip sharing one set of wires. This lesson follows a save down them, and asks how far it gets before the program hears “done”.

Before you start. A file is only bytes plus an agreement about how to read them (Everything Is a Number (bits & bytes)), and a program never touches the disk itself: it asks the kernel, the one program with full access to the hardware (Processes, Threads & the Kernel). The disk is slow, so the kernel starts a job on it and does other work until the disk signals it is done (I/O, Interrupts & the Bus).

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Lab

The device taps the CPU on every event. What happens when it taps a million times a second?

Open Let the device tap you every time, push Events a second arriving to the top, and watch What got done.

Open The interrupt storm →

Your write returned and the power cut a moment later. Is the record on the disk?

Click After every record, then Every 1,000 records, drag Where the power cuts, and watch Lost on the crash.

Open The fsync interval →

Review How Computers Work →

Saved in this browser, and to your account when you sign in.