Skip to content

OSlings Practice Problems

The OSlings practice problems are short paper problem sets on the kernel exercises. Each is extra credit: Extra Credit says how a set earns its share. Each set is posted here blank, and its answer key follows once the set has been reviewed. Some sets also have a video for each problem that works the key on the set's own pages.

Work the blank set on paper before you open the key or a video. Reading a solution feels like learning and mostly is not.

34k-36k: Processes, Context Switch, Scheduling

OSlings Practice 34k-36k (PDF, 5 pages) · Solutions (PDF, 5 pages): three problems on 34k_processes, 35k_context_switch and 36k_scheduling, and their answer key.

Solution videos, one per problem, each working the answer key on the set's own pages: Problem 1 · Processes (6:15) · Problem 2 · Context Switch (6:48) · Problem 3 · Scheduling (7:10).

37k-38k: Spinlocks, Semaphores, Kernel Heap

OSlings Practice 37k-38k (PDF, 6 pages) · Solutions (PDF, 6 pages): three problems on 37k_spinlocks and 38k_semaphores (the spinlock, the semaphore built on it, and the kernel heap), and their answer key.

Solution videos, one per problem, each working the answer key on the set's own pages: Problem 1 · Spinlocks (7:33) · Problem 2 · Semaphores and Arc (6:58) · Problem 3 · The Kernel Heap (7:30).

39k: Virtual Memory

OSlings Practice 39k (PDF, 4 pages) · Solutions (PDF, 4 pages): one problem, in three parts, on 39k_virtual_memory (building the kernel's page table and turning on translation), and its answer key.

Solution video, working the answer key on the set's own pages: Problem 1 · Turning on Virtual Memory (9:34).

40k-41k: Filesystem, Devices

OSlings Practice 40k-41k (PDF, 4 pages) · Solutions (PDF, 4 pages): two problems on 40k_filesystem and 41k_devices, and their answer key. Problem 2 (41k) is optional extra credit.

Solution videos, one per problem, each working the answer key on the set's own pages: Problem 1 · Filesystem (7:02) · Problem 2 · Devices (6:23).

42k-44k: Boot Order, Traps, Interrupts

OSlings Practice 42k-44k (PDF, 6 pages) · Solutions (PDF, 6 pages): three problems on 42k_boot_to_life, 43k_traps and 44k_interrupts, and their answer key.

Solution videos, one per problem, each working the answer key on the set's own pages: Problem 1 · Boot Order (4:58) · Problem 2 · Traps (5:23) · Problem 3 · Interrupts (5:34).

45k-47k: Console Input, the Shell, File Commands

OSlings Practice 45k-47k (PDF, 6 pages) · Solutions (PDF, 6 pages): three problems on 45k_console, 46k_shell and 47k_file_commands, and their answer key. Problem 3 (47k) is optional extra credit.

Solution videos, one per problem, each working the answer key on the set's own pages: Problem 1 · Console Input (5:43) · Problem 2 · The Shell (5:11) · Problem 3 · File Commands (7:19).

48k: User Mode and System Calls

OSlings Practice 48k (PDF, 4 pages) · Solutions (PDF, 4 pages): one problem, in three parts, on 48k_user_mode (running a program in user mode and answering its system calls), and its answer key.

Solution video, working the answer key on the set's own pages: Problem 1 · User Mode and System Calls (8:29).

49k-50k: exec, File Descriptors

OSlings Practice 49k-50k (PDF, 4 pages) · Code packet (PDF, 4 pages): two problems on 49k_exec and 50k_file_descriptors. This set comes in two papers: the problems, with room to answer, and a code packet holding the code each problem uses, labeled with the problem or part it goes with (Code 1, Code 1(a), …). Keep the packet beside the problems as you work. The answer key follows once the set has been reviewed.