Introduction to Operating Systems

Course staff

Instructor: Alexandra Fedorova. (You can call me 'Sasha').
Office hours: TBD

Teaching Assistants:

  • Adison de la Cruz
  • Ali Abedian
  • Cora Shao
  • Lisa Chen
  • Zeo Wang

How to contact the course staff

Please contact us on Piazza only. You can find the link to enroll in Piazza on Canvas.

Labs and office hours

Our labs are essentially office hours, where we help you complete the assignments. You are welcome to attend any of these labs/office hours, not necessarily the time slot assigned to you at registration. We cannot staff all of the scheduled labs. See schedule below for when TAs will be present. In addition, we will hold online office hours on Zoom.

Office hours run until the last day of classes.

Online Office Hours (Zoom)

Monday Tuesday Saturday Sunday
9-9:30amAliZeo
9:30-10amAliZeo
10:30-11amCora
11-11:30amCora
6-6:30pmLisaAdison
6:30-7pmLisaAdison

In-Person Office Hours

Wednesday Thursday Friday
MCLD 4002 MCLD 4006 MCLD 4002
4-4:30pmCora
4:30-5pmCoraAdison
5-5:30pmZeoAdison
5:30-6pmZeo
7-7:30pmAli
7:30-8pmAli

Learning outcomes

By the end of this course you will:
  • Understand key operating system concepts, such as resource virtualization, protection and concurrency.
  • Be very comfortable navigating around the OS161 source code -- a teaching operating system highly resemblant of BSD.
  • Have implemented crucial parts of the kernel infrastructure, such as synchronization primitives, processes and file tables, system calls and virtual memory.
  • Be very comfortable with kernel development tools, such as common editors (emacs, vim), code-browsing tools (e.g., cscope), a debugger (gdb) and a source control system git.
  • Have enough confidence to hack a real operating system.

Grading formula

The following formula will be used to assign your raw mark for the class. The raw mark usually translates into your final letter grade, though sometimes we curve the marks or adjust the marks based on your contribution to the team projects.
  • 60% Programming assignments. There will be 6 programming assignments. A1 is worth 5%, A2-A5 are worth 10% each. A6 is worth 15%.
  • 40% Exams and quizzes iClicker (5%) and Canvas exams/quizzes (25%).

How we grade assignments

Each assignment includes the evaluation rubric. Your code will be expected to pass the tests shown in the rubric. Each test is assigned some number of points. Your code must compile and pass at least one test to receive a non-zero mark. A portion of the grade will test code understanding. With the exception of A2, on which there will be a quiz, you will be interviewed by a TA to evaluate the understanding of the code that you wrote. Even if your code passes tests, but you show no understanding of the code, you will receive zero marks for the assignment. It will be easier for the TA to evaluate your code if it is well written and commented. Use this document as a guideline for writing high-quality code.


If you are caught cheating, your code review mark will be set to zero.

Rules on completing assignments

  • Assignments 1-3 must be completed on your own.
  • Assignments 4-6 must be completed in teams of two. This document provides guidelines on working in teams.
  • You cannot submit the code written by someone else, except yourself and your partner.
  • Submitting someone else's code constitutes cheating and will not be tolerated.
  • You get a total of 7 late days for assignments 4-6. No late days for Assignments 1-3.

Textbooks

During the course we will read articles from these online textbooks:

Policy on cheating

Cheating is not tolerated. You are to write the code for assignments, to answer the code-reading questions and write your quizzes by yourself. This means that you must write all the code from scratch, using only what is available in the OS161 code that is given to you. More precisely, you cannot take someone else's code that contains the answer, modify it and submit it as your own. We will use a highly effective system that easily catches code similarity (even if you rename functions and reorder statements), and that is very proficient and catching cheaters. We practice zero-tolerance policy on cheating. If you are caught cheating, your case is reported to the University and you may fail the course and suffer other negative consequences.

In-class quizzes will verify your attendance via a magic code. If you are caught texting the magic code to another student, who is not attending the class, or if you are caught receiving the magic code from someone else while you are not taking the class, you will receive zero on all the quizzes for the entire term . To avoid this mishap, you are not allowed to text during quizzes or use anything besides the approved websites and software.


Also, see UBC Policy on Academic Integrity.

Use of generative AI

You may use generative AI to explain how the existing code works and to get feedback on your code. You must still write the code yourself.

How to ask questions

Please ask all your questions during labs, class, office hours or on Piazza. We will not respond to questions posed by email, with very rare exceptions. We will reward those who ask good questions and respond in a helpful way to questions posed by others.

Read the following guides on asking questions: If you abuse the forum by being rude, offensive or by engaging in behaviour that can be described as harassment you may get disciplined in the same way as you would by misbehaving in the classroom. Hiding behind a Piazza alias is not an excuse for being obnoxious. See UBC policy on unacceptable behaviour.

What to have in class

  • A laptop with your OS161 code
  • Your mobile device with the iClicker Reef app
  • A name tag to set on your desk that looks like this, with your name written in large bright letters.

Class attendance

Although class lectures will be recorded, you are required to attend classes in person . We will often have quizzes during class and those classes can only be done in class, you cannot do them online from a different location. This is done to prevent cheating. Class announcements will explain the rules in more detail.

Equity, Diversity, Inclusion

We welcome everybody who passes the pre-requisites for the course and is ready to work hard. Any comments about how we can improve inclusion are welcome at help@ece.ubc.ca or via an anonymous suggestion box.