Schedule

The schedule below shows the tentative dates for all class topics, readings, and assignments. You should complete all assigned reading before class on the day it is listed. Labs will be available shortly before the assigned lab day. There may be some revisions to the schedule during the semester, but I will make sure to announce these changes in class. If you view this page with JavaScript enabled you can jump to the current week on the schedule, and you should see the next day of class highlighted in the schedule below.

Week 0
F
Aug 25

Introduction

We’ll begin the course by discussing operating systems generally. What is an OS? What is its job? How does it work? We’ll also spend some time thinking about how we learn and the elements of this course that are meant to facilitate your learning.

Reading
Week 1
M
Aug 28

C Practice

We’ll spend today’s class practicing C programming. We’ll also discuss standards for coding style, comments, and other guidelines you’ll be expected to follow for all assignments and labs in this class.


W
Aug 30

Debugging Practice

Today we will practice using gdb to track down bugs in C programs.

Reading

F
Sep 1

Processes and System Calls

Today we’ll discuss a key OS abstraction: the process. We’ll talk about why and how we use processes on Linux.

Reading
Week 2
M
Sep 4

Class Canceled for Labor Day

W
Sep 6

Lab Day: Shell

In today’s lab you will implement a shell, the program that runs in a terminal window. Shells make it possible for users to interact with an operating system, so building your own will give you a chance to practice writing code to communicate with the OS. You’ll also get to practice dealing with user input in C.

Reading
  • Review lab before class
Assigned

F
Sep 8

Address Spaces and Memory

Address spaces are an important abstraction that makes it possible for the OS to run processes in isolation. We’ll look at the high-level idea of an address space and learn about how you interact with address spaces in code. We’ll also take some time to look at different types of mistakes you can make when dealing with memory.

Reading
Week 3
M
Sep 11

Address Translation & Paging

Today we will look in detail at two real mechanisms that the OS uses to create address spaces.

Reading

W
Sep 13

Lab Day: Virtual Memory

Today’s lab will test your understanding of address spaces and the memory API. You’ll take advantage of Linux’s address space features to write some interesting and useful code.

Reading
  • Review lab before class
Assigned Due

F
Sep 15

Swapping

One important use of virtual memory that goes beyond simply isolating processes from each other is swapping. This makes it possible for an OS to run programs that don’t fit in the amount of memory on the system. We’ll look at why this is useful and how it works.

Reading
Week 4
M
Sep 18

A Short Detour: Files & Directories

Reading

W
Sep 20

Lab Day: Memory Allocator

Today’s lab will be one of the most challenging of the semester. You’ll use your new understanding of virtual memory and the memory API to implement a memory allocator, the code that provides malloc and free for other programs.

Reading

F
Sep 22

Virtual Memory Wrap-Up

We’ll conclude our discussion of virtual memory by looking at the complete VM system from malloc down to disk space. This broader view leads us to some interesting applications of virtual memory, as well as some important security issues.

Reading
Week 5
M
Sep 25

Virtual Memory Wrap-Up (continued)

Reading
  • OSTEP ch 7 Scheduling
    • moved to Friday
  • OSTEP ch 8 Multi-Level Feedback Queue
    • moved to Friday

W
Sep 27

Lab Working Day

You’ll have time during class today to continue working on your malloc implementations.


F
Sep 29

CPU Scheduling

We’ve seen how we can support multiple programs running on a single machine with processes and address spaces, but how does the OS decide which one to run at any given time? This is the job of the CPU scheduler. We’ll look at a few scheduling algorithms and discuss their advantages and drawbacks.

Reading
Week 6
M
Oct 2

CPU Scheduling, Continued

Reading

W
Oct 4

Lab Day: Worm

Today’s lab will require that you use your new understanding of CPU scheduling to write a scheduler for a console game. The game, a clone of the classic Snake game, is composed of a series of tasks. You will build the system that tracks these tasks and executes them at the appropriate times.

Reading
  • Review lab before class
Assigned Due

F
Oct 6

Threads

While processes make it possible to run multiple programs on a single machine, sometimes we might like a single program to do multiple tasks at a time. Threads make it possible for a single process to run multiple operations concurrently. We’ll look at why threads are useful, how to create and interact with threads in Linux, and what makes thread programming particularly challenging.

Reading
Week 7
M
Oct 9

Synchronization with Locks

We’ll build on our understanding of threads from the previous class and look at how we can use locks to control concurrent accesses to data structures.

Reading
Assigned
  • Assignment: Parallel Lettercount

W
Oct 11

Lab Day: Password Cracker

For today’s lab, you will solve an embarassingly parallel problem using threads. An embarassingly parallel problem is one that is easy to distribute over multiple threads.

Reading
  • Review lab before class
Assigned Due

F
Oct 13

Condition Variables and Semaphores

While locks are important for guaranteeing mutual exclusion, they aren’t the only tool available for controlling concurrency. We’ll look at two additional concurrency control primitives today and see how they can help us write interesting concurrent programs.

Reading
Fall Break
Week 8
M
Oct 23

Concurrency Bugs

Today we will look at the kinds of bugs that concurrent programs can have, and think about how to design a concurrent program to avoid these bugs.

Reading
Tu
Oct 24

Work Assigned

W
Oct 25

Threads Wrap-Up

Assigned
  • Mid Semester Participation Reflection (see slides)
Due

F
Oct 27

Introduction to GPUs

Today we will learn how to use graphics processing units (GPUs) to write parallel programs that, when carefully designed, can run tens or hundreds of times faster than parallel programs that use threads on conventional processors.

Week 9
M
Oct 30

Introduction to GPUs, Continued

Tu
Oct 31

Work Due

W
Nov 1

Lab Day: GPU Sudoku Solver

This week’s lab will require you to implement a parallel computation that can run on a GPU. This computation will be part of a larger system that uses the GPU as a co-processor, a common model for modern workloads.

Reading
  • Review lab before class
Assigned Due
  • Mid Semester Participation Reflection (see slides) (by 11:59pm)

F
Nov 3

Networks & Distributed Systems

One of the most interesting and challenging problems computer science is designing and implementing systems that work reliably across multiple machines. We’ll look at what makes this problem difficult and explore some of the interesting techniques that make it possible to build distributed systems that work well.

Reading
Week 10

W
Nov 8

Lab Day: Peer-to-Peer Chat

This week’s lab will combine your experience with networks and distributed systems. You will implement a small distributed system using some of the techniques we’ve seen in class.

Th
Nov 9

Work Due

Due
F
Nov 10

Introduction to the Project

Reading
Assigned
  • Project Proposal
Week 11
M
Nov 13

Lab Working Day


W
Nov 15

Project Working Day

Assigned
  • Reading journal: The Night Watch (see gradescope for questions)
Due
  • Project Proposal (by 11:59pm)

F
Nov 17

Identity and Belonging in CS

Starting with an article that’s problematic toward belonging in CS, we critiqued the article and then took a more positive turn and talked about building up CS identity and belonging, concluding with an art project.

Reading
Due
  • Reading journal: The Night Watch (see gradescope for questions) (by 12:00 pm)
Week 12
M
Nov 20

Filesystem Implementation

Today we’ll begin looking at how an operating system can store users’ files and directories on a disk.

Reading
Tu
Nov 21

Work Due

Due
W
Nov 22

Filesystem Integrity

Today we will look at what happens to a filesystem when something goes wrong, and how filesystems can be built to tolerate failures.

Reading
Week 13
W
Nov 29

Special Topic: Memory Errors and Security

Writing secure software is incredibly important, especially when you’re writing OS-level code in a language like C. We’ll work through three security exercises as a class today. This won’t make you an expert in secure programming with C, but hopefully you’ll think about the vulnerabilities we discuss when you find yourself writing important code in the future.

Assigned
  • Final Participation Reflection (see gradescope)

F
Dec 1

Special Topic: Memory Errors and Security, continued

We’ll continue the memory errors and security activity from the previous class.

Week 14
Su
Dec 3
M
Dec 4

Discussion: UNIX and Worse is Better

In today’s class we’ll look back at a particularly influential systems project—the UNIX operating system. Dennis Ritchie wrote an interesting description of some of the basic features of UNIX and how they came about. We’ll combine that with Richard Gabriel’s commentary on two distinct approaches to system building, and how they fare over time.

Reading

W
Dec 6

Project Working Day

Due
  • Final Participation Reflection (see gradescope) (by 11:59pm)

F
Dec 8
Finals Week
Tu
Dec 12

Project Presentations (2–5pm)

Due
  • Project Presentation
F
Dec 15

Work Due

Due
  • Complete Project