Skip to content

Solutions

Exam and practice-set solutions are posted here after each is reviewed in class.

Exercise solutions are released with the next exercise. The reference solution for an exercise exists in no repository you can fetch until its make-up window has closed. It ships with the next release, into exercises/<name>/solution/, and oslings update brings it into your repository. Print it with:

oslings solution 33k_paging

Before the release, that command tells you the solution is not out yet.

That is deliberate. The exercises are the course, and an exercise whose answer is a click away is not an exercise. Once the solution is out, reading the reference version is genuinely worthwhile — it is often shorter than what you wrote, and the difference is the lesson.

Practice sets

Posted after each is reviewed in class.

OSlings Practice 34k-36k: processes, context switch and scheduling. The set, its key, and a video for each problem that works the key on the set's own pages.

OSlings Practice 37k-38k: spinlocks, semaphores and the kernel heap. The set, its key, and a video for each problem that works the key on the set's own pages.

OSlings Practice 39k: virtual memory. The set, its key, and a video that works the key on the set's own pages.

OSlings Practice 40k-41k: the filesystem and devices. The set, its key, and a video for each problem that works the key on the set's own pages.

OSlings Practice 42k-44k: boot order, traps and interrupts. The set, its key, and a video for each problem that works the key on the set's own pages.

OSlings Practice 45k-47k: console input, the shell and file commands. The set, its key, and a video for each problem that works the key on the set's own pages.

OSlings Practice 48k: user mode and system calls. The set, its key, and a video that works the key on the set's own pages.

Midterm 2 Practice Exam: six problems in the midterm's format, on 34k through 48k. The exam, its key, and a video for each problem that works the key on the exam's own pages.

Exams

Midterm 1, Thursday, October 15: both sections' exams and keys, and a video for each problem that works the key on the exam's own pages.

Midterm 2, Thursday, November 19: both sections' exams and keys, and a video for each problem that works the key on the exam's own pages.