COMP SCI/SFWR ENG 3SH3 Course Outline

Operating Systems



  • Please check out the final exam location and time. Bring your McMaster standard calculators. Good luck!
  • ======================================================


    Term II, 2012-2013
    Mo Th 12:30-13:20, Tu 13:30-14:20, JHE 264


    A. Silberschatz, G. Gagne, and P.B. Galvin. Operating System Concepts, 8th edition. John Wiley and Sons, Inc. 2009.
    ISBN 1118112733


    Dr. Sanzheng Qiao
    ITB 246, ext. 27234,

    Course Assistants

    Qian Hu,
    Reza Pournaghi,
    Zhaofei Tian,
    Special assistant: Asghar Bokhari,

    Office Hours

    Sanzheng Qiao: Tue. 14:30-16:30, ITB/246
    Qian Hu: Thu. 14:30-15:30, ITB/237 and Thu. 15:30-16:30, ITB/206
    Reza Pournaghi: Fri. 14:30-16:30, ITB/A103
    Zhaofei Tian: Wed. 19:30-20:30 ITB/237 and Thu. 9:30-10:30 ITB/207
    Asghar Bokhari: Drop-in, 9:00-16:00, ITB/242

    Calendar Description

    Processes and threads, synchronization and communication; scheduling; memory management; file systems; resource protection; structure of operating systems.
    Prerequisite(s): One of CS 2ME3, SE 2AA4, 3K04, 3M04
    Antirequisite(s): CE 4SN4, CS 3SH3, 4SH3, SFWR ENG 3BB4

    Course Objectives

    By the end of this course students will be able to understand the design and implementation principles of modern operating systems

    have a good knowledge of process/thread synchronization, file system, memory management, network protocols, and layering structure

    Evaluation scheme

    Programming projects (team) 24% (Three Nachos assignments)
    Midterm Exam (closed book) 20%
    Final Exam (open book) 56%


    Only the McMaster Standard calculator will be permitted in tests and examinations. This is available at the McMaster Bookstore.

    Academic Dishonesty

    You are expected to exhibit honesty and use ethical behaviour in all aspects of the learning process. Academic credentials you earn are rooted in principles of honesty and academic integrity.

    Acamedic dishonesty is to knowingly act or fail to act in a way that results or could result in unearned academic credit or advantage. This behaviour can result in serious consequences, e.g. the grade of zero on an assignment, loss of credit with a notation on the transcript (notation reads: "Grade of F assigned for academic dishonesty"), and/or suspension or expulsion from the university.

    It is your responsibility to understand what constitutes academic dishonesty. For information on the various types academic dishoesty please refer to the Academic Integrity Policy, located at

    The following illustrates only three forms of academic dishonesty:

    Plagiarism, e.g. the submission if work that is not one's own or for which other credits has been obtained.
    Improper collaboration in group work.
    Copying or using unauthorized aids in tests and examinations.

    In case of discrepancy between the online and handout version of the course outline, the handout version shall be taken as correct.

    Faculty Notices

    "The Faculty of Engineering is concerned with ensuring an environment that is free of all discrimination. If there is a problem, individuals are reminded that they should contact the Department Chair, the Sexual Harrassment Officer or the Human Rights Consultant, as the problem occurs."

    Course Materials

    Nachos home page.


  • Week 1: Introduction pdf.
    A brief history pdf.
    Reading: OSC 1.1-1.5
  • Weeks 2-4: Processes and threads processes threads.
    Reading: OSC Sections 3.1-3.3, 4.1-4.6.
    Roadmap 1: Threads and Context Switch
  • Weeks 5-8: Synchronization pdf.
    Reading: OSC Sections 6.1-6.10, 7.1-7.8
    Roadmap 2: Synchronization
    Roadmap 3: Interrupts
  • Weeks 9-10: Memory management pdf
    Reading: OSC Sections 8.1-8.8, 9.1-9.6
    Roadmap 4: User Program
    Roadmap 6: Virtual Memory
  • Weeks 11-12 Network pdf
    Reading: OSC Section 16.6.
    Roadmap 8: Network
  • Week 13: File systems pdf
    Reading: OSC Sections 10.1-10.3, 10.6
    Roadmap 7: File System
  • Week 14: Scheduling pdf.
    Reading: OSC Sections 5.1-5.3
  • Tutorials

  • Januray 24, 2013, Working on Assignments
    by Zhaofei Tian,
  • NACHOS Road Maps

  • Threads and Context Switch (4.02)
  • Synchronization (4.02)
  • Interrupts (4.02)
  • User Program (4.02)
  • Console (4.02)
  • Virtual Memory (4.02)
  • File System (4.02)
  • Network (4.02)
  • Midterm, February 14, Thursday, 12:30-13:20, T28 (Last name A-K), T29 (Last name L-Z)

    2012-2013 midterm (pdf)

    Final, April 23, Tuesday, 09:00-11:00, IWC 1 (4-6)

    Open textbook and notes. No electronics. Please bring your McMaster standard (Casio-FX991) calculators.
    Office hours: April 22, Monday, 14:00-16:00, 16:30-17:30, ITB/201
    2012-2013 final


  • Nachos Project Mechanics
  • Group List
  • Assignment 1: Threads
    (pdf). Due: February 11, Monday, 23:59:59
    Qian Hu ( Groups 1-12
    Reza Pournaghi ( Groups 13-24
    Zhaofei Tian ( Groups 25-37
  • Assignment 2: Alarm clock
    (pdf). Due: March 11, Monday, 23:59:59
    Qian Hu ( Groups 13-24
    Reza Pournaghi ( Groups 25-37
    Zhaofei Tian ( Groups 1-12
  • Assignment 3: Network
    (pdf). Due: April 8, Monday, 23:59:59
    Qian Hu ( Groups 25-37
    Reza Pournaghi ( Groups 1-12
    Zhaofei Tian ( Groups 13-24
  • Marks

    Back to S. Qiao's home page