CSE 120: Principles of Computer Operating Systems

Fall 2002

Geoff Voelker (voelker@cs.ucsd.edu)
AP&M 5131
(858) 822-3323
Teaching Assistants
John Rapp (Projects) (jlrapp@cs.ucsd.edu)
Yuchung Cheng (Homeworks, Discussion) (ycheng@cs.ucsd.edu)
Tu/Th 2:00pm - 3:20pm
HSS 1330
Discussion Sections
W 12:00pm - 12:50pm
CSB 002
Office Hours
Voelker: Mon 4-5pm, Wed 3-4pm (AP&M 5131)
Cheng: Mon 1-2pm, Thu 1-2pm (AP&M 3349D)
Rapp: Tue 6-7:30pm, Wed 1-2pm, Thu 6-7:30pm (AP&M B402)
AP&M B402 (uAPE, sparcs)
EBU2 313 (overflow, sparcs)
Silberschatz, Operating System Concepts, Wiley, 6th Edition (Windows XP Update)
ISBN 0-471-25060-0 ($99 @ Amazon.com)
Class Mailing List
Discussion Board

Course Objectives

This course covers the principles of operating systems. It emphasizes the basic concepts of OS kernel organization and structure, processes and threads, concurrency and synchronization, memory management, file systems, and communication. It is also a project course, providing essential experience in programming with concurrency, implementing and unmasking abstractions, working within an existing complex system, and collaborating with other students in a group effort.

Course Organization

The course is organized as a series of lectures by the instructor, discussion sections by the TAs, reading, homework, and project assignments, and exams:


Homeworks are due by the end of class on the day specified. We will reduce homework grades by 20% for each day that they are late. You must hand in a hardcopy of your homework; disagreements about the contents of emailed homeworks have caused too much grief in the past.

I encourage you to collaborate on the homeworks: You can learn a lot from your fellow students. However, there can be a fine line between collaboration and cheating. Collaboration consists of discussing problems with other students and independently writing your own answers to the problems based upon those discussions; as a rule of thumb, you should be able to discuss a homework problem in the library with others, go home, and then write up your answer to the problem on your own. Cheating consists of looking at other student's homeworks and copying the answers, looking at past homeworks and/or solutions from previous versions of the class, searching on the Web, etc. The consequences of cheating will correspond to the severity (e.g., failure of the assignment, failure of the course). Cheating causes many problems for all of us -- don't do it, and save us all the grief.

The academic honesty guidelines outlined by Charles Elkan for CSE 130 apply to this course.


The course has one tutorial project and three programming projects using the Nachos instructional operating system. You will work in groups of at most four on each of the projects.


The course has two exams, a midterm and a final. The midterm will cover the first half of the class, and the final will cover the material for the entire quarter.


Your grade for the course will be based on your performance on the homeworks, midterm and final exams, and the three projects using the following weights:

Course Schedule

The following table outlines the schedule for the course. I will update it as the quarter progresses.

Date Lecture Readings Homework Project
9/26 Course Intro, OS Modules Chapter 1, Appendix C (Nachos)    
10/1 OS Architectural Support Chapters 2, 3 Homework 1: Out  
10/3 Processes Chapter 4   Project 0: Out
10/8 Threads Chapter 5 Homework 1: Due Project 0: Due
10/10 Synchronization Chapter 7.1-7.6   Project 1: Out
10/15 Semaphores and Monitors Chapter 7.7-7.10 Homework 2: Out  
10/17 Semaphores and Monitors
Project 1
Chapter 7.7-7.10    
10/22 Scheduling and Deadlock Chapters 6, 8    
10/24 Scheduling and Deadlock
Misc Synchronization
Chapter 9 Homework 2: Due  
10/29 (No class)     Project 1: Due
10/30 Midterm Review      
10/31 Midterm Exam      
11/5 Memory Management      
11/7 Paging Chapter 10 Homework 3: Out Project 2: Out
11/12 Page Replacement Chapter 10    
11/14 File Systems Chapters 11, 12, 18    
11/19 FFS, LFS, and RAID Chapter 12.8, 14.5 Homework 3: Due  
11/21 RPC, NFS Chapter 12.9    
11/24 (Sunday)     Project 2: Due
11/26 OS Structure Browse Chapters 3, 15, 20, 21, 22,
Appendices A, B
Homework 4: Out Project 3: Out
11/28 Thanksgiving Holiday Butterball    
12/3 Security, Inferring Internet DoS,
Internet Worm Quarantine
Chapter 19
DoS paper, USENIX Security 2001
Homework 4: Due  
12/5 Course Summary, Final Review      
12/8 (Sunday)     Project 3: Due
12/10 Final Exam (3:00-6:00pm)      

Supplemental Reading

The supplemental readings include primary sources and in-depth supplements for concepts in the class. Supplemental reading is for your own interest -- the readings are not required, nor will you be tested on the material. Note that some of the links to the documents point to the ACM Digital Library. UCSD has a subscription to the ACM Digital Library, so you will need to use a web browser on campus to access them.