#1: 1/15 - 1/19

MLK day

MLK day (no class)

System Programming

1. Dive into System programming

Prelecture: HW0. The lecture will assume you've made significant progress on this homework

How to crash in C

2. Dive into C programming

Prelecture: Intro to C Notes. The lecture will assume you've already reviewed and played with this material.

#2: 1/22 - 1/26

C Crash Course 2

3. man,asprintf,free,assert

C Crash Course 3

4. getenv, scanf, getline, fork

Fork and wait

5. fork and waitpid

#3: 1/29 - 2/2

Forking Processes

6. The fork-exec-wait pattern

Signals for Process Control

7. Introducing POSIX signals to suspend and kill child processes. SIGSTOP, SIGKILL, SIGINT

Signals 2

8. Advanced Signals

#4: 2/5 - 2/9

Thanks for the heap memory

How to build a memory allocator. Placement algorithms. Fragmentation.

Memory allocators I

Hone your pointer skills when writing malloc and free.

Memory allocators II

Memory allocators part 2.

#5: 2/12 - 2/16


Introducing pthreads. stacks. Concurrency programming gotchas.

Threads and mutex locks

Introducing pthreads. stacks, shared memory. creating and joining. Concurrency programming gotchas.

Mutexes and semaphores

Why we need Mutex locks and semaphores. Basic usage of pthread implementations. Common gotchas.

#6: 2/19 - 2/23

Quiz 3: Sign up!

Condition Variables

Mutex and Condition Variable examples. How to implement a lock (The critical section problem).

Critical Section Problem

Incorrect attempts to solve the Critical Section Problem. Introduction to Condition Variables.

Condition Variables II

Condition Variables. Implementing a semaphore using a Condition Variable.

#7: 2/27 - 3/2

Reader Writer Problem

Implementing a barrier. Implementing the R/W Problem using Condition Variables.

Dining Philosophers

The Dining Philosophers problem


Introduction to Deadlock. Coffman conditions.

See Deadlock.

#8: 3/5 - 3/9

Page tables

Virtual memory


Scheduling examples


Scheduling simulator. epoll

See Scheduling.

#9: 3/12 - 3/16

Pipes and Files

POSIX Pipes and random access files

Pipes, Files, VM II

POSIX Pipes, files, memory II

See Files


ext2/3/4 filesystem. inode

See Files.

#10: 3/19 - 3/23

No lecture

Spring Break

No lecture

Spring Break

No lecture

Spring Break

#11: 3/26 - 3/30


file meta data

See Files.



Errno. Networking Intro

Robust error handling. EINTR. Intro to TCP,UDP,IP

#12: 4/2 - 4/6


TCP/IP Header. IPv4 exhaustion. A web client

TCP Server

Passive sockets. The 4 server calls and what they do. Gotchas.

TCP Server II

Socket Programming Gotchas. Intro to scheduling

#13: 4/9 - 4/13



See UDP.



See UDP.



See RPC.

#14: 4/16 - 4/20

Network Review



Memory mapped files


Virtual f/s

See VFS.