skip to primary navigationskip to content

Department of Computer Science and Technology



Course pages 2023–24

Advanced Operating Systems

Principal lecturer: Prof Robert Watson
Taken by: Part II CST
Code: AOS
Term: Lent
Hours: 16
Format: In-person lectures
Class limit: max. 18 students
Prerequisites: See the full prerequisites on the syllabus page.
Moodle, timetable


Systems research refers to the study of a broad range of behaviours arising from complex system design, including: low-level operating systems; resource sharing and scheduling; interactions between hardware and software; network-protocol design and implementation; separation of mutually distrusting parties on a common platform; and control of distributed-system behaviours such as concurrency and data replication. This module will:

  1. Teach systems-analysis methodology and practice through tracing and performance profiling experiments;
  2. Expose students to real-world systems artefacts such as I/O, IPC,and network-stack implementations, and consider their hardware-software interactions with CPUs;
  3. Develop scientific experimentation, analysis and presentation skills through a series of laboratory assignments; and
  4. Assign a selection of original research papers to give insight into potential research topics and approaches.

The teaching style will blend lectures and hands-on labs that teach methodology, design principles, and practical skills. Students will be taught about (and assessed via) a series of lab assignments based on practical work. The systems studied are real, and all wires will be live.


It is strongly recommended that students:

  1. Have previously (and successfully) completed an undergraduate operating-system course -- or have equivalent experience through project or open-source work.
  2. Have reasonable comfort with the C and Python programming languages. C is the primary implementation language for systems that we will analyse, requiring reading fluency; userspace C programs will also be written and extended as part of lab exercises. Python will be used as our data-collection and processing language, and provides useful tools for data analysis and presentation.
  3. Review an undergraduate operating-system textbook (such as the 'Dinosaur Book') to ensure that basic OS concepts such as the process model, inter-process communication, filesystems, network stacks, and virtual memory are familiar.


The sessions are split up into three submodules:

  1. Introduction to kernels and kernel tracing/analysis

    The purpose of this submodule is to introduce students to the structure of a contemporary operating system kernel through tracing and profiling.

    • Lecture 1: Introduction: OSes, Systems Research, tracing and this course
    • Lecture 2: Kernels and Tracing
    • Lab 1: Getting Started with Kernel TRacing

  2. The Process Model

    This submodule introduces students to concrete implications of the UNIX process model: processes and threads in both userspace and kernelspace, the hardware foundations for kernel and process isolation, system calls, and traps.

    • Lecture 3: The Process Model (1)
    • Lecture 4: The Process Model (2)
    • Lab 3: IPC

  3. TCP

    This submodule introduces students to a contemporary network stack, with a particular interest in the TCP protocol. abs will consider both the behaviour of a single TCP connection, exploring the TCP state machine, socket-buffer interactions with flow control, and TCP congestion control. Students will use DUMMYNET to simulate network latency and explore how TCP slow start and congestion avoidance respond to network conditions. The second marked lab assignment will be written.

    • Lecture 5: The Network Stack (1)
    • Lecture 6: The Network Stack (2)
    • Lab 3: TCP


On completion of this module, students should:

  • Have a good understanding of high-level OS kernel structure
  • Gained insight into hardware-software interactions for compute and I/O
  • Have practical skills in system tracing and performance analysis
  • Have been exposed to research ideas in system structure and behaviour
  • Have learned how to perform systems-style performance evaluations
  • Have learned how to present systems evaluation results

Recommended reading

Primary module texts

Course texts provide instruction on statistics, operating-system design and implementation, and system tracing. You will be asked to read selected chapters from these, but will likely find other content in them useful as you proceed with the labs.

Marshall Kirk McKusick, George V. Neville-Neil, and Robert N. M. Watson. The Design and Implementation of the FreeBSD Operating System, 2nd Edition, Pearson Education, Boston, MA, USA, September 2014.

Brendan Gregg and Jim Mauro. DTrace: Dynamic Tracing in Oracle Solaris, Mac OS X and FreeBSD, Prentice Hall Press, Upper Saddle River, NJ, USA, April 2011.

Additional texts

Abraham Silberschatz, Peter Baer Galvin, and Greg Gagne, Operating System Concepts, Eighth Edition, John Wiley and Sons, Inc., New York, NY, USA, July 2008.

Brendan Gregg. Systems Performance: Enterprise and the Cloud, Prentice Hall Press, Upper Saddle River, NJ, USA, October 2013.

Research-paper readings

Research-paper readings will be announced as the terms proceed, but will likely include original papers on BPF, DTrace, OS scheduling, OS scalability, network stacks, and systems modelling.

Assessment - Part II Students

  • Exercise 1: Getting started with Kernel tracing 20%
  • Exercise 2: Inter-Process Communication Performance 30%
  • Exercise 3: TCP 50%