CSE 120: Principles of Computer Operating Systems

Spring 2020

Lectures
Tu/Th 5–6:20pm (Zoom)
Discussion Session
Wed 2–2:50pm (Zoom)
Instructor
Yiying Zhang (yiying@ucsd.edu)
Office Hours: Wed/Fri 9:30-10:30am (Zoom)
TAs and Tutors
Lihao He (lih046@ucsd.edu)
Xiao Liu (x1liu@ucsd.edu)
Jinmou Li (jil026@ucsd.edu)
Priyal Rakesh Suneja (psuneja@ucsd.edu)
Lab Hours: Calendar
Canvas
We will use Canvas for announcements, grading, Zoom meeting info, etc. Canvas Link
Discussion Board
Piazza
Textbook
Remzi H. Arpaci-Dusseau and Andrea C. Arpaci-Dusseau
Operating Systems: Three Easy Pieces
Version 1.00   (Available free online!)

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 Schedule

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

Date Lecture Readings Optional Homework Project
3/31 Course Intro CH. 1, CH. 2   HW 1: Out   PR 0: Out  
4/2 Interaction between hardware, OS, and applications CH. 6    
4/7 Processes CH. 4, CH. 5 Linux context switch    
4/9 Threads CH. 26, CH. 27    
4/14 Synchronization CH. 28, CH. 29   HW 1: Due
HW 2: Out
PR 1: Out
PR 0: Due
4/16 Semaphores CH. 31      
4/21 Conditional Variables, Concurrency Bugs CH. 30, CH. 32    
4/23 CPU Scheduling CH. 7, CH. 8      
4/25 (Saturday)     HW 2: Due    
4/28 Midterm Review        
4/30 Midterm Exam    
5/5 Memory Management Overview CH. 15, CH. 16,   HW 3: Out  
5/7 Paging CH. 18, CH. 19, CH. 20     PR 1: Due
PR 2: Out
5/12 Swapping, Memory Allocation and Sharing CH. 21,      
5/14 Page Replacement CH. 22,      
5/19 Working Sets, Storage Devices CH. 37,    
5/20 (Wednesday)     HW 3: Due
HW 4: Out
5/21 File System Interface and Layout CH. 39, CH. 40    
5/26 File System Implementation CH. 41      
5/28 File System Reliability CH. 42      
6/2 Distributed Systems, Datacenters, and Clouds CH. 48 Berkeley View of Cloud Computing   PR 2: Due
6/3 (Wednesday)     HW 4: Due  
6/4 Summary & Final Review        
6/11 Final Exam 7pm - 10pm      

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:

Homework

The course will have four homeworks. I will post them as the quarter progresses. You will submit all your homework electronically via Canvas. We will reduce homework grades by 20% for each day that they are late.

Due to extensive copying on homeworks in the past, I have changed how homeworks are graded. As long as you submit a technical answer related to the question, you will get full credit for the question. The goal of the homeworks is to give you practice learning the material. The homework questions both supplement and complement the material from lecture and in the project, and you will also find the homework questions to be useful for practicing for the exams. We will post solutions to all homeworks after they are submitted, and you can use them for studying as well. But, even with the solutions, the amount you learn from the homeworks will be directly correlated with your effort working on them.

I encourage you to collaborate on the homeworks: You can learn a lot from your fellow students. 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 hall with others, go home, and then write up your answer to the problem on your own.

Projects

The course has one tutorial project and two programming projects using the Nachos instructional operating system.

Exams

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 second half of the class.

Discussion Sections

Discussion sections answer questions about the lectures, homeworks, projects, and programming environment. They may also supplement the lectures with additional material.

Grading

Your grade for the course will be based on your performance on the homeworks, midterm, and (no-fault) final exams, and the three projects using the better letter-grade result of the following two calculations:

The academic honesty guidelines outlined by Charles Elkan apply to this course. I urge you to resist any temptation to cheat, no matter how desperate the situation may seem. If you are in circumstances that you feel compel you to cheat, come to me first before you do so.

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.