CS 1550 Introduction to Operating Systems

Spring 2023

 

Contact Information

Instructor

 

 

Student Support Hours

 

Sherif Khattab, 6307 SENSQ

(412) 624-8438

skhattab@cs.pitt.edu

MW: 11:00-12:00

Th: 9:00-10:00 and 11:00-12:00

F: by appointment

Zoom link: https://pitt.zoom.us/my/khattab

Please reserve at: https://khattab.youcanbook.me/

Lectures

 

TuTh 14:30-15:45 @ 5129 Sennott Square

TAs

 

 

Student Support Hours

 

Ahmad Diab, SENSQ 6803

ahd23@pitt.edu (Recitation TA)

Injung Kim, 130 N Bellefield Ave, 5th floor Common Area

ink20@pitt.edu (Grader TA)

M: 13:30-15:00

F: 11:00-12:30

 

Tu: 9:00-12:00

Zoom info: https://pitt.zoom.us/j/96500862858

 

 

Recitations

24002: Friday 10:00-10:50 @ IS 411

24001: Friday 15:00-15:50 @ IS 411

Student Feedback

Please send us your anonymous feedback

Top Hat Join Code

990387

 

Course Description

 

The purpose of this course is to understand and use the basic concepts of operating systems, common to most computer systems, which interface the machine with the programmer. In particular, this class introduces concepts such as process management, concurrency, inter-process communication, memory management and protection, I/O systems, file systems, security, and virtual machines.

The goal of the course is to help demystify a good portion of the magic about how computers work.

 

The specific learning objectives of the course are:

 

1.     Modify and compile the Linux kernel to add system calls

2.     Write multi-process programs that are free from race conditions and deadlocks

3.     Simulate page-replacement algorithms that are used in virtual memory management

4.      Implement a user-land file system

 

Prerequisites

 

 

CS 0447 and CS 0449 (It is important that you refresh your knowledge and skills on C, pointers, file and string operations, etc. and on debugging using GDB)

Textbook

 

A. Silberschatz, P.B. Galvin, and G. Gagne, Operating System Concepts, 9th Edition, John Wiley & Sons, Inc., 2012.
ISBN: 1-11-806333-3 (Available at Bevier Engineering Library Reserve Desk QA76.76.O63 S5583)
8th Edition available online via Pitt Library.

 

Grading Policy

 

Projects (40%): four projects worth 10% each. Late submissions are allowed for up to two days with a 10% reduction per late day. After two days, the assignment grade is zero. The assignments will be handed out using Github Classroom and submitted on the Gradescope platform.

This must be your own individual work. Do not look at the solution of anyone (or even part of it), and do not let anyone else look at yours (or even part of it). You should figure out the solutions by yourself --- do not ask anyone how to solve the problem, and do not seek the answer from some other source.

 

Students are expected to have a backup disk (or storage somewhere) for every assignment they turn in. In this way, if there is any problem with the copy that is handed in the backup can be used for grading purposes.

 

Midterm and Final exams (30%): 18% on higher and 12% on lower. Make-up exams can be scheduled well in advance. The exams are in-person and non-cumulative.

 

Weekly homework assignments (10%): Twelve homework assignments worth 1% each. The lowest two homework assignments are dropped. There will be a bonus homework at the end of the term.

 

Recitation (10%): 5 lab exercises using the XV6 operating system and four quizzes on projects. The lowest two items will be dropped.

 

Lecture Quizzes (10%): In-class questions using Tophat. The join code is 990387.

 

Please note that the grades posted on Canvas, especially the final letter grade, are tentative

Important Dates (Tentative)

 

Midterm Exam

Th 3/2 at regular class time

Final Exam

Wednesday 4/26 8:00-9:50; location according to PeopleSoft Exam Schedule

 

Project #

Out on

Due on @11:59pm

1

F 1/20

F 2/17

2

F 2/17

F 3/17

3

F 3/17

F 4/7

4

F 4/7

M 5/1

 

Weekly Schedule

(Tentative)

 

 

Week

Topic

Reading

Announcements

Wk 1

(1/9-1/13)

System Calls

Chapters 1, 2

Wk 2

(1/16-1/20)

M: Dr. Martin Luther King's birthday observance (no classes)

 

Process Synchronization

Chapter 5

Project 1 out on 1/20

 

Spring Term add/drop period ends on 1/20

Wk 3

(1/23-1/27)

Process Synchronization

Chapter 5

Spring Term extended add/drop period ends on 1/27

Wk 4

(1/30-2/3)

Process Synchronization

Chapter 5

Wk 5

(2/6-2/10)

Deadlock avoidance and prevention

Chapter 7

Wk 6

(2/13-2/17)

CPU Scheduling

Chapter 6

Project 1 due on 2/17 @ 11:59pm

Project 2 out on 2/17

Wk 7

(2/20-2/24)

CPU Scheduling

 

Chapter 6

Wk 8

(2/27-3/3)

Memory Management

Midterm exam

Chapter 8

 

Midterm exam on Thursday 3/2

Spring Recess for students (no classes)

Wk 9

(3/13-3/17)

Virtual Memory

Page replacement algorithms

Chapter 9

Project 2 due on 3/17 @ 11:59pm

Project 3 out on 3/17

Wk 10

(3/20-3/24)

Files and File System
File System Implementation

Chapter 11, 12

Wk 11

(3/27-3/31)

File System Implementation

Chapter 12

Wk 12

(4/3-4/7)

I/O, DMA, Interrupts, Polling

Chapter 13

Project 3 due on 4/7 @ 11:59pm

Project 4 out on 4/7

Wk 13

(4/10-4/14)

Disks, RAID, Disk Arm Scheduling

Chapter 13

Wk 14

(4/17-4/21)

Security

Chapter 14, 15

Finals Week

(4/24-4/28)

Final Exam

Prepare for

the final

Project 4 due on 5/1 @ 11:59pm

Final exam on Wednesday 4/26 8:00-9:50; location according to PeopleSoft Exam Schedule

 

 

 

Communication Policy

 

 

Please reach out to the teaching team as early as possible and as frequently as possible. You can reach the course instructor during student support hours and on Piazza (you can send public and private messages. You can also post anonymously).

Please expect a response within 72 hours. Any other communication method (e.g., email) is not recommended.

 

Your Well-being Matters

College/Graduate school can be an exciting and challenging time for students. Taking time to maintain your well-being and seek appropriate support can help you achieve your goals and lead a fulfilling life. It can be helpful to remember that we all benefit from assistance and guidance at times, and there are many resources available to support your well-being while you are at Pitt. You are encouraged to visit Thrive@Pitt to learn more about well-being and the many campus resources available to help you thrive. 

 

If you or anyone you know experiences overwhelming academic stress, persistent difficult feelings and/or challenging life events, you are strongly encouraged to seek support. In addition to reaching out to friends and loved ones, consider connecting with a faculty member you trust for assistance connecting to helpful resources. 

 

The University Counseling Center is also here for you. You can call 412-648-7930 at any time to connect with a clinician. If you or someone you know is feeling suicidal, please call the University Counseling Center at any time at 412-648-7930. You can also contact Resolve Crisis Network at 888-796-8226. If the situation is life threatening, call Pitt Police at 412-624-2121 or dial 911.

 

Health and Safety Statement

I would like to emphasize that my number one concern is your safety and health, both physical and mental.  My goal is for every one of you to succeed in the course. I am here to support you and I will remain understanding and flexible given the challenges that we are all facing together. The lectures and some recitations will be recorded, and the recorded sessions include your participation. The recorded sessions will be made available through Canvas and only to this term's class.

 

During this pandemic, it is extremely important that you abide by the public health regulations, the University of Pittsburgh'health standards and guidelines, and Pitt's Health Rules. These rules have been developed to protect the health and safety of all of us. The University's requirements for face coverings will at a minimum be consistent with CDC guidance and masks are required indoors (campus buildings and shuttles) on campuses in which COVID-19 Community Levels are High. This means that when COVID-19 Community Levels are High, you must wear a face covering that properly covers your nose and mouth when you are in the classroom. If you do not comply, you will be asked to leave class. It is your responsibility to have the required face covering when entering a university building or classroom. Masks are optional indoors for campuses in which county levels are Medium or Low. Be aware of your Community Level as it changes each Thursday. Read answers to frequently asked questions regarding face coverings. For the most up-to-date information and guidance, please visit the Power of Pitt site and check your Pitt email for updates before each class.

If you are required to isolate or quarantine, become sick, or are unable to come to class, contact me as soon as possible to discuss arrangements. Arrangements include, but are not limited to, providing a Zoom link to join class remotely.

 

Students with Disabilities

 

If you have a disability for which you are or may be requesting an accommodation, you are encouraged to contact both your instructor and Disability Resources and Services (DRS), 140 William Pitt Union, (412) 648-7890, drsrecep@pitt.edu, (412) 228-5347 for P3 ASL users, as early as possible in the term. DRS will verify your disability and determine reasonable accommodations for this course.

Academic Integrity


All assignment submissions must be the sole work of each individual student. Students may not read or copy another student's solutions or share their own solutions with other students. Students may not review solutions from students who have taken the course in previous years. Submissions that are substantively similar will be considered cheating by all students involved, and as such, students must be mindful not to post their code publicly. The use of books and online resources is allowed, but must be credited in submissions, and material may not be copied verbatim. Any use of electronics or other resources during an examination will be considered cheating. If you have any doubts about whether a particular action may be construed as cheating, ask the instructor for clarification before you do it. The instructor will make the final determination of what is considered cheating. Cheating in this course will result in a grade of F for the course and may be subject to further disciplinary action. Should a student be accused of a breach of academic integrity or have questions regarding faculty responsibilities, procedural safeguards including provisions of due process have been designed to protect student rights. These may be found in Guidelines on Academic Integrity: Academic Integrity Policy of the School of Computing and Information.

Pay attention to the following examples of cheating, which include:

Sharing code: either by copying, retyping, looking at, or supplying a copy of a file from this or a previous semester.

Describing code: Verbal description of code from one person to another.

Coaching: Helping your friend to write a lab, line by line.

Copying: Copying code from the Web or another student. You are only allowed to use code that we provide you.

Searching: Searching the Web for solutions or for any advice on the lab.


Cheating is also looking at other students' code or allowing others to look at yours. This includes one person looking at code and describing it to another. Be sure to store your work in protected directories (e.g., under the private folder on your AFS space on the department servers), and log off when you leave a remote server, to prevent others from copying your work without your explicit assistance.

You may find it useful to know what is not cheating:

Clarifying ambiguities or vague points in class handouts, lectures, or textbooks.

Helping others use the computer systems, networks, compilers, debuggers, profilers, or other system facilities.

Helping others with high-level design issues only, but algorithm/coding and other such details are not ``high-level design issues''.

Helping others with high-level (not code-based) debugging.

Using code from the skeleton/package provided in class is always OK.

For a first offense, a student caught collaborating or cheating in any way will receive an F for the course and may be subject to stronger action. They will be reported to the school following University procedures. Submissions that are alike in a substantive way (not due to coincidence) will be considered to be cheating by ALL involved parties. Please protect yourselves by only storing your files in private directories, and by retrieving all printouts promptly.

Religious Observances


To accommodate the observance of religious holidays, students should inform the instructor (by email, within the first two weeks of the term) of any such days which conflict with scheduled class activities.

Equity, Diversity, and Inclusion

The University of Pittsburgh does not tolerate any form of discrimination, harassment, or retaliation based on disability, race, color, religion, national origin, ancestry, genetic information, marital status, familial status, sex, age, sexual orientation, veteran status or gender identity or other factors as stated in the University's Title IX policy. The University is committed to taking prompt action to end a hostile environment that interferes with the University's mission. For more information about policies, procedures, and practices, visit the Civil Rights & Title IX Compliance web page.

I ask that everyone in the class strive to help ensure that other members of this class can learn in a supportive and respectful environment. If there are instances of the aforementioned issues, please contact the Title IX Coordinator, by calling 412-648-7860, or e-mailing titleixcoordinator@pitt.edu. Reports can also be filed online. You may also choose to report this to a faculty/staff member; they are required to communicate this to the University's Office of Diversity and Inclusion. If you wish to maintain complete confidentiality, you may also contact the University Counseling Center (412-648-7930).

 

Copyright Statement

 

These materials may be protected by copyright. United States copyright law, 17 USC section 101, et seq., in addition to University policy and procedures, prohibit unauthorized duplication or retransmission of course materials. See Library of Congress Copyright Office and the University Copyright Policy.

 


Classroom Recording

 

 

To ensure the free and open discussion of ideas, students may not record classroom lectures, discussion and/or activities without the advance written permission of the instructor, and any such recording properly approved in advance can be used solely for the student's own private use.