Midterm 2 Solutions¶
Midterm 2 was given on Thursday, November 19, in two versions, one for each
section. Both ask the same five problems with different inputs, addresses and
names, and the options in a different order. A few parts are set up
differently: in 1(a) a process goes to sleep in Section 01 and wakes up in
Section 02; 2(d) leaves PTE_W off the UART's page in Section 01 and off RAM in
Section 02; and 5(b) traces getpid in Section 01 and write in Section 02.
Each version is posted here, blank and with its key, and a video for each
problem works the key on that exam's own pages.
Work the blank exam on paper before you open the key or a video. Reading a solution feels like learning and mostly is not.
Section 01¶
Midterm 2, Section 01 (PDF, 11 pages) · Solutions (PDF, 11 pages): the exam as Section 01 took it, and its answer key.
Solution videos, one per problem, each working the answer key on the exam's own pages: Problem 1 · Round-Robin Scheduling (11:42) · Problem 2 · The Kernel Page Table (13:02) · Problem 3 · Inodes and Directories (12:11) · Problem 4 · The Shell (10:45) · Problem 5 · User Mode and System Calls (13:41).
Section 02¶
Midterm 2, Section 02 (PDF, 11 pages) · Solutions (PDF, 11 pages): the exam as Section 02 took it, and its answer key.
Solution videos, one per problem, each working the answer key on the exam's own pages: Problem 1 · Round-Robin Scheduling (12:08) · Problem 2 · The Kernel Page Table (14:18) · Problem 3 · Inodes and Directories (12:19) · Problem 4 · The Shell (11:05) · Problem 5 · User Mode and System Calls (14:44).