Skip to content

The Process Table

Exercise: 34k_processes · Thu Oct 22 · Length: 5:11 · Lecture: Week 9 · Thursday · 34k Processes · Explainer: The Process Table

A narrated walk through the explainer, for after the Oct 13 lecture and before Thursday's session: a process as one record, a Proc, and a table of 64 slots that holds them, with NEXTPID outside it. A run of claims and give-backs follows: a claim takes the first Unused slot, a new pid and one page, and a give-back leaves the slot reading Unused only once it owns nothing. A slot is reused, but a pid never is, and a page goes with a process, not a slot. Two broken cases follow, with what the test printed for each in a real run: one that always claims slot 0 and one that never sets the slot back to Unused. Then a full table and the claim it refuses. The video ends on what the test checks and what it cannot see. It shows no solution code: only what the table holds after each step, with numbers that are examples, not the lecture's.

Download the video (MP4, 8 MB) · Captions (WebVTT) · All four Week 9 videos