Operating Systems - CS 3013 |
|
CS 3013: Operating Systems
Section: A02 - Shue
Class Dates: A Term 2023, Tuesdays and Fridays
Meeting Time and Place: 12:00pm to 1:50pm in Unity Hall 520
This course provides the student with an understanding of the basic components of a general-purpose operating system. Topics include processes, process management, synchronization, input/output devices and their programming, interrupts, memory management, resource allocation, and an introduction to file systems. Students will be expected to design and implement a large piece of system software in the C programming language. Undergraduate credit may not be earned both for this course and for CS 502. Recommended background: CS 2303 or CS 2301, and CS 2011.
Operating systems are present in a broad range of devices, from embedded systems to powerful supercomputers. This course is designed to help students learn more about operating systems, allowing students to know how to write applications that leverage operating system resources or for those that wish to develop operating systems themselves. The course will introduce the concepts of concurrency, abstraction, and caching. Other topics, such as file systems and networking, may be discussed only briefly, but are described in greater detail in separate courses (CS 4513 - Distributed Systems and CS 3516 - Computer Networking, respectively).
Course Instructor (Section A02): Craig A. Shue, Ph.D. (pronouns: he/him; they/them is also fine)
Email: please post via the class discussion board
Office: Zoom
Office Hours: Mondays, 1:00pm-2:00pm; Thursdays, 10:00am-11:00am
Exception 1: Monday, Sept. 2: Office hours instead on Sept. 3 at 10:00am-11:00am.
Exception 2: Thursday, Oct. 3: Office hours move from 10:00am-11:00am to 8:30am-9:30am
Student Assistant: Klaudio Fusha (he/him/his)
Office: Zoom
Office Hours: Tuesdays, 11:00am-12:00pm; Wednesdays, 1:00pm-3:00pm
Student Assistant: Jacob Glik (he/him/his)
Office: Zoom
Office Hours: Tuesdays: 4:00pm-5:00pm; Fridays:
3:00pm-5:00pm
Permanent
Change: Starting Thursday, Sept. 5 moved Thursday afternoon hours to Fridays,
3:00pm-5:00pm
Exception
1: Friday, Sept. 27 (Wellness Day) from 3:00pm-5:00pm moved to Thursday, Sept. 26: 3:00pm-5:00pm instead
Student Assistant: Adelynn Martin (she/her/hers)
Office: Zoom
Office Hours: Tuesdays, 3:00pm-4:00pm; Wednesdays,
10:00am-11:00am; Thursdays, 1:00pm-2:00pm
Exception
1: Wednesday, Sept. 4: 9:00am-10:00am instead
Student Assistant: Fiona Prendergast (she/her/hers)
Office: Zoom
Office Hours: Mondays and Tuesdays: 9:00am-10:00am; Wednesdays, 11:00am-12:00pm
We will be using the following textbooks for the course:
Students must complete readings from the OSTEP book before each class. A quiz at the start of class will include contents from the readings due for the previous class session (allowing discussion before a quiz on the material). Since it can take multiple passes through material to retain it, failure to read the book will likely lead to poor performance in the course.
This schedule is subject to change. Any changes will be announced in class with at least one week's advance notice, when possible. All readings are out of the OSTEP textbook unless otherwise noted. All readings are due before class on the date indicated. Students are expected to have read the readings prior to arriving for class. All projects are due at 11:59:00pm on the date indicated.
Class | Date | Required Reading | Description |
---|---|---|---|
1 | Friday, Aug. 23, 2024 | Course Syllabus, OSTEP Chapter 2 | Class: Course Introduction |
2 | Tuesday, Aug. 27, 2024 | OSTEP Chapters 4 and 5 | Class: System calls and Processes |
Tuesday, Aug. 27, 2024 | Due: Project 0 | ||
3 | Friday, Aug. 30, 2024 | OSTEP Chapters 26 and 27 | Class: System Calls, Introduction to Concurrency |
Friday, Aug. 30, 2024 | Due: Project 1 - Checkpoint | ||
4 | Tuesday, Sep. 3, 2024 | OSTEP Chapter 28 | Class: Intro. to Concurrency, Processes |
5 | Friday, Sep. 6, 2024 | OSTEP Chapters 29 and 30 | Class: Synchronization, Concurrent Applications |
Friday, Sep. 6, 2024 | Due: Project 1 - Final | ||
6 | Tuesday, Sep. 10, 2024 | OSTEP Chapters 31 and 32 | Class: Concurrent Applications |
7 | Friday, Sep. 13, 2024 | OSTEP Chapters 7, 13 and 14 | Class: Scheduling, Memory Management |
Friday, Sep. 13, 2024 | Due: Project 2 - Checkpoint | ||
8 | Tuesday, Sep. 17, 2024 | OSTEP Chapters 15, 16, and 17 | Class: Memory Management |
Wednesday, Sep. 18, 2024 | Due: Project 2 - Final | ||
9 | Friday, Sep. 20, 2024 | OSTEP Chapters 18, 19, and 20 | Class: Caching Principles and Paging |
10 | Tuesday, Sep. 24, 2024 | OSTEP Chapters 21 and 22 | Class: Caching and Paging Performance, Virtual Memory |
Tuesday, Sep. 24, 2024 | Due: Project 3 - Checkpoint | ||
Thursday, Sep. 26, 2024 | Due: Project 3 - Final | ||
11 | Tuesday, Oct. 1, 2024 | OSTEP Chapters 36 and 37 | Class: Input and Output |
12 | Friday, Oct. 4, 2024 | OSTEP Chapter 39 | Class: Input and Output, File Systems |
Friday, Oct. 4, 2024 | Due: Project 4 - Checkpoint | ||
13 | Tuesday, Oct. 8, 2024 | OSTEP Chapters 53 and 54 | Class: System Security and Protection |
Tuesday, Oct. 8, 2024 | Due: Project 4 - Final | ||
14 | Friday, Oct. 11, 2024 | Class: Special Topics |
The following represent the official policies and procedures for the course. Please review this information and discuss any questions with the professor as soon as possible.
The university-wide Canvas system does not align well with the instructor's course design. Instead, we will be using InstructAssist, a custom-built course management tool created by the instructor. This system will be used for posting grades, submitting projects, obtaining slides, and posting partner evaluations. It is available at https://ia.wpi.edu/cs3013-shue/.
Class discussion, class hand-outs, InstructAssist, posts on the class forum, emails to the student's WPI email account, and the course Web pages are avenues for official course communication. Students are responsible for any information distributed through any of these venues. Since students may miss important information when absent, they are responsible for ensuring they get caught up via Lecture Capture or class notes from peers.
Students must check their WPI email daily. The instructor and TAs will use email to send urgent information to the class. Classmates collaborating on teams may also use email to coordinate efforts, so checking email periodically will be essential for timely responses.
Students should post all questions about the course on the class discussion board. The teaching staff will use the discussion board to keep track of assistance requests. Further, posts on the discussion board will be available to all students by default, allowing everyone to learn from these questions.
By default, all students will be subscribed to receive email copies of the classwide announcements sent by the teaching staff. Students may unsubscribe from non-urgent postings by adjusting their profile settings. Students are responsible for all announcements, even if they elect not to receive email copies.
If a question is of a more personal or private nature, students can choose to create a new discussion topic and select the "Visible by Invitation Only" topic privacy option. Any communication in that topic will be visible only to the Instructor, the TAs, the student creating the topic, and any individuals the student explicitly invites to the topic. This approach will allow students to have a private discussion with the staff while still allowing the staff to keep track of unresolved issues and address them in a timely fashion.
When constructing software in this class, students should follow best practices and develop habits that will serve them well past graduation. In general, code must be clean and organized. It must be appropriately commented as well. If there is lack of clarity in an assignment, the grading may be negatively affected. The CS Department Documentation Format describes some of the goals for these assignments and should be considered when programming.
Submissions must include a Makefile for compilation and, where relevant, a README file should be included with instructions or to clarify use. All programs must compile and execute on the provided virtual machines. Programs that do not compile, or programs lacking commenting, will not be graded and will be assigned a score of 0.
For students working in pairs, each student must complete a partner evaluation indicating the contributions of each team member. Failure to complete an evaluation will result in a penalty. Students who are found to not have contributed their fair portion of the assigned deliverables may face grade deductions at the discretion of the teaching staff. Since students must demonstrate competency in all learning outcomes associated with assignments, and since they will be held accountable for all submitted work, it is essential for students to review and understand work produced by their project partners.
Students with a strong computer science background develop the ability to quickly pick up a new programming language as needed. This provides them the flexibility to adapt to changing work requirements and the ability to recognize the most efficient tool for the job. Students pick up these abilities through exposure to different programming languages, especially those that serve as the model for future languages.
In this course, we will be using the C programming language. This language is the basis of many common operating systems and network programs, with operating system APIs designed with these languages in mind. Students without experience in C will have to develop such a background while concurrently developing course projects. This is extremely challenging and prior courses have shown that students without a background in C programming generally do not perform well in CS 3013.
The C Programming Language, by Kernighan and Ritchie, (ISBN: 0-13-110362-8) is the de facto standard guide to programming in C and provides a good reference in addition to the textbooks.
During lectures, students are to be focused on the course. Students should not use materials or electronic devices that would inhibit their attention to the course lecture and discussion. Laptops may only be used for note-taking purposes; transmission capabilities on these devices must be disabled and only appropriate note-taking application may be used in class. Mobile devices, such as phones or PDAs, are not to be used in class. Significant penalties may be assessed for repeated infractions.
Students must treat each other and the teaching staff with respect at all times. Disagreement, debates, and criticism of ideas are healthy aspects of academic environments; however, students should avoid demeaning language or comments which can be taken personally. The ability to handle conflict professionally and work with a variety of people is an acquired skill, yet is increasingly important in technical careers.
Students will not receive credit for Project 0 if they submit it late.
All other programming projects may be submitted late, but with significant penalties. Programs that are late by a certain amount of time, denoted as t, will incur the following penalties:
0 minutes < t ≤ 1 day | 10% deduction from maximum grade before the rest of the grading begins |
1 day < t ≤ 3 days | 30% deduction from maximum grade before the rest of the grading begins |
3 days < t ≤ 5 days | 50% deduction from maximum grade before the rest of the grading begins |
5 days < t | no credit will be awarded |
Any projects submitted after 4pm on Thursday, Oct. 10, 2024 will not be graded.
The course programming assignments and PDF response homework assignments form the basis for 95% of the course grade. The remaining 5% of the course grade will be attributed to class participation and professionalism associated with the course. Details on each of these components are as follows:
In this course, office hours are to support students by giving them an opportunity to interact with the instructor and the teaching assistants. It is an expectation that students will use office hours periodically in the class. When students attend office hours, they should record their visits in InstructAssist to receive participation credit. In some cases, students may come to office hours with a specific goal (e.g., to ask questions about readings, the projects) and other times it may be to participate in informal discussion about course topics (e.g., high level goals in an assignment or chapter). Each of these are considered good outcomes.
The use of Zoom makes it easier for students to attend office hours in a passive mode or just to have staff available while working on projects. This style of interaction is encouraged. The teaching staff will likely periodically check in with each student to ensure nobody is awaiting the staff's assistance. However, we do not mind students "hanging out" during those sessions.
The teaching staff may employ "break out rooms" during office hours so that students (and their project partners) may share screen with the staff to get help. Students should only share their screens when in such a break out room. If the Zoom session is running, but the teaching staff is not visible, they may be in a break out room. Please wait for them to return.
The instructor may use the main room of the Zoom session to share his own screen to illustrate concepts for the group. He will often survey the gathered students to learn what topics multiple people want to hear about. When he is doing that, feel free to ask questions even if another student was the one that spurred a particular discussion.
Computer Science would not be what it is without diversity. Ada Lovelace's work in the 1800s made her recognized as the world's first programmer. As popularized in the "Hidden Figures" film, Mary Jackson's work with the West Area Computing section at NASA was instrumental to the US space program. Alan Turning, recognized as the father of Computer Science and Artificial Intelligence, was an openly gay man in the 1950s (and was unfortunately prosecuted for it).
While we have all benefited from this diversity, society's work to foster inclusion and respect is incomplete. We must continue to recognize there is a role for us all in computing. In this class, we will treat each other with respect and we will recognize we all belong, regardless of identity or background. The teaching staff will support all our students.
We want to maximize the learning and benefit our students gain from this course. This can lead to fast-paced, highly technical material and that can be overwhelming. The goal for all should be to gain the most they can while still remaining healthy and well. We understand that there is inherent balance. Please talk with the course instructor about any challenges and we will plan a path forward together. In many cases, a little flexibility can help. In others, it might take a couple attempts at the course to really master the material. We can figure that out together.
Students with approved academic accommodations should plan to submit their accommodation letters through the Office of Accessibility Services Student Portal. Should you have any questions about how accommodations can be implemented in this particular course, please contact me as soon as possible. Students who are not currently registered with the Office of Accessibility Services (OAS) but who would like to find out more information about requesting accommodations, documentation guidelines, and what the accommodated interactive process entails should plan to contact OAS either by email AccessibilityServices@wpi.edu, by phone (508) 831-4908, or by stopping by the office on the 5th floor of Unity Hall.
For a WPI degree to have value, students must earn the credential by demonstrating completion of course learning outcomes on their own merits. Therefore, it is essential that we ensure academic integrity in this course.
The WPI Academic Integrity Policy describes types of academic dishonesty and requirements in documentation. In the case of academic dishonesty, I am required to report the incident to the Dean of Student Affairs. Further, my penalty for academic dishonesty is to assign a NR grade for the course.
Any materials submitted for grading must solely be created by the student themselves. When working with a project partner, students may submit materials co-authored with that project partner. The assessment in the class is to determine a student's capabilities, not the capabilities of others or automated tools. In accordance with this, students may not look at any previous versions of a course assignment, quizzes, or projects, regardless of its distribution mechanism. If a student accidentally discovers they have obtained unauthorized materials, they must report it to the instructor immediately, avoid the resource in the future, and delete any copies that are cached on their computer. Likewise, students may not submit work that has been generated by automated programming or text generation tools (such as Copilot or ChatGPT).
Students are likewise forbidden from facilitating other students, current or future, in plagiarism or cheating. Students may not distribute their code publicly on the Internet, or in other means, during the term or even after the class has concluded. Students may share their code with potential employers or other individuals privately, so long as the code would not become available to other WPI students.
Academic integrity can be detail-oriented. The following table summarizes and augments the above policy. If a student has any doubt about whether something is allowed, they must ask the teaching staff in advance.
Question | Quizzes | Project 0 | Projects 1, 2, 3 and 4 |
---|---|---|---|
Must be done 100% alone? | Yes | Yes | Declared InstructAssist project partner allowed |
May work with a partner who has been declared for the assignment in InstructAssist? | No | No | Yes |
May work with more than one partner? | No | No | No |
May consult textbook or instructor-provided materials? | No | Yes | Yes |
Must cite any referenced materials? | May not consult during quiz | Yes | Yes |
May use ChatGPT, Co-Pilot, or other automated programming tools? | No | No | No |
Submission may include source code written by anyone other than self? | No | No | Only code written by self or declared InstructAssist project partner allowed |
Must be able to explain all submitted work? | Yes | Yes | Yes |
May consult prior years' materials? | No | No | No |
May discuss assignment concepts at a high level with classmates? (When in doubt about whether something is "high level", seek advance approval from teaching staff.) | Only after all quizzes are turned in | Yes | Yes |
May discuss assignment in detail with classmates? | Only after all quizzes are turned in | No | Only declared InstructAssist project partner |
May make instructor's materials (e.g., project specs, quiz questions) public or available to future years' students? | No | No | No |
May make your own created materials (e.g., solutions) public or available to future years' students? | No | No | No |
May privately share instructor's materials (e.g., project specs, quiz questions) with specific non-students (e.g., prospective employers)? | Yes | Yes | Yes |
May privately share your own created materials (e.g., solutions) with specific non-students (e.g., prospective employers)? | Yes | Yes | Yes |