CS370: Operating Systems


red-line
[Schedule] [Assignments] [Grading] [Syllabus] [Infospaces] [Canvas] [Home]

Schedule


Last updated on Monday, November 30, 2026 2:48 PM
Professor Lecture Coordinates
 

Shrideep Pallickara

Office Hours:
Fridays 1:00-2:00 pm in CSB-364 and via Zoom
E-mail: compsci_cs370@colostate.edu





 


Clark A-2202
TTH 2:00-3:15 pm

All e-mails should be addressed to:
compsci_cs370@colostate.edu


Graduate Teaching Assistants
Cameron Seuss

Collin Conrad

Undergraduate Teaching Assistants
Ryan Baldwin

Wilson Valentine



Key to Notation
Readings will be from the Operating Systems Concepts book by Silberschatz, Galvin, and Gagne 10th edition. John Wiley & Sons, Inc. ISBN-13: 978-1119800361. [SCG]
Additional Useful References
(1)
Andrew S Tanenbaum and Herbert Bos. Modern Operating Systems. 4th Edition, 2014. Prentice Hall.
ISBN: 013359162X/978-0133591620. [AT]
(2) Thomas Anderson and Michael Dahlin. Operating Systems: Principles and Practice, 2nd Edition.
Recursive Books. ISBN: 0985673524/978-0985673529. [AD]
(3) Kay Robbins & Steve Robbins. Unix Systems Programming, 2nd edition, Prentice Hall
ISBN-13: 978-0-13-042411-2. [RR]
(4) C Programming Language (2nd Edition). Brian W. Kernighan and Dennis M. Ritchie.
Prentice Hall. ISBN: 0131103628/978-0131103627
(5) Concurrent Programming in Java(TM): Design Principles and Pattern (2nd Edition).
Doug Lea. Prentice Hall. ISBN: 0201310090/978-0201310092.




   
Introduction References and HW
This module provides an overview of the course, grading criteria, and a brief introduction to high level operating systems concepts. We will explore the differences between kernel mode and user-mode and why they exist. We will also look at the role the operating system plays between applications and the underlying hardware. Ch {1,2} [SGG]
Ch {1} [RR]
Ch {1} [AT]

Ch {1} AD




 

Objectives:

  1. Summarize basic operating systems concepts
  2. Highlight key developments in the history of operating systems
  3. Explain the distinction between kernel mode and user mode, and why that distinction matters.
 
08/25

08/27


Lecture 1

Lecture 2

   
Processes Readings
Processes are a foundational construct in organizing computations within a system. This module will contrast differences between programs and processes. A key idea covered in this module is the notion of multiprogramming which can used to give the illusion that multiple processes are executing concurrently. We will explore the layout of processes in memory and the various pieces of metadata associated with a process that are maintained in a Process Control Block (PCB). The PCB plays a foundational role in how the OS context-swictches between different processes. There is quite a bit of bookkeeping involved in maintaining the illusion that everything is happening at once. Ch {3} [SGG]
Ch {2} [AT]
Ch {2, 3} [RR]
Ch {2, 3} [AD]






  Objectives:
  1. Contrast programs and processes
  2. Explain the memory layout of processes
  3. Describe Process Control Blocks
  4. Explain the concept of Interrupts and Context Switches
  5. Describe process groups
  6. Trace the state of a process through its creation, execution, blocking, and termination. 
 
09/01

09/03



Lecture 3

Lecture 4
   
Inter-Process Communications Readings
One of the operating system’s main jobs is to keep processes isolated, making sure they run independently without interfering with each other. But sometimes, isolation isn’t enough: processes need to communicate. In this module, we’ll explore how the OS makes that possible. We’ll break down the three key mechanisms that allow processes to exchange information while still maintaining order and control. Each IPC mechanism makes different trade-offs, and choosing between them is part of the problem rather than merely a matter of syntax.

Ch {3} [SGG]
Ch {2} [AT]
Ch {2, 3} [AD]




  Objectives:
  1. Explain inter-process communications based on Shared Memory
  2. Explain inter-process communications based on Pipes
  3. Explain inter-process communications based on message passing
  4. Contrast inter-process communications based on shared memory, pipes, and message passing
  5. Design programs that implement inter-process communications
  6. Select an appropriate IPC mechanism for a given communication pattern and justify that choice.

 
09/08

09/10


Lecture 5


Lecture 6
   
Threads  
Think of a thread as a lightweight unit of execution within a process: small, fast, and designed to coexist with other threads inside that process. But why would we want multiple units of execution inside one process? The main reason comes down to efficiency: simplified data sharing and rapid context switching. When multiple threads run inside the same process, they can share data easily, without the overhead that comes with communication between separate processes. Achieving this kind of seamless sharing across independent processes would be far more complex and much slower. Ultimately, threads give us a way to keep things both parallel and tightly connected, striking a balance between speed and coordination. As we will see, easy sharing is both their great advantage and the source of several interesting problems.

Ch {4} [SCG]
Ch {2} [AT]
Ch {12} [RR]
Ch {4} [AD]



 

Objectives:

  1. Explain differences between processes and threads
  2. Compare multithreading models
  3. Contrast differences between user and kernel threads
  4. Relate dominant threading libraries: POSIX, Win32, and Java
  5. Design threaded programs that can synchronize their actions
  6. Analyze the costs and benefits of using multiple threads within a process. 

 

09/15

09/17




Lecture 7

Lecture 8
   
Process Synchronization Ch {5}[SCG]
Ch {4} [AT]



When multiple processes (or threads) run at the same time and need to work together, they have to coordinate their actions carefully. The challenge isn’t just making them run concurrently: it’s making sure they do so correctly and safely. A flawed approach can lead to chaos, with processes stepping on each other’s toes in unpredictable ways. To get a deeper understanding of these challenges, we’ll explore some classic problems in synchronization. These time-tested scenarios reveal the fundamental issues that arise when processes share resources and need to stay in sync. Concurrency is one of those settings in which “almost correct” turns out to have a surprisingly precise technical meaning.

 

Objectives:

  1. Formulate the critical section problem.
  2. Analyze a software solution to the critical section problem (case study: Peterson's solution)
  3. Explain Synchronization hardware and Instruction Set Architecture support for concurrency primitives.
  4. Evaluate classic problems in synchronization: bounded buffers, readers-writers, dining philosophers.
 

09/22

09/24

09/29


Lecture 9

Lecture 10

Lecture 11

   
Atomic Transcations  
This module will cover issues relating to preserving atomicty of transcactions. We will explore issues that arise when a multiplicty of transcactions need to execute concurrently while preserving safety properties. The central question is this: how can operations run concurrently while still producing results that appear correct and orderly? Ch {5}[SCG]
 

Objectives:

  1. Explain serializability of transactions
  2. Assess locking protocols
  3. Explain checkpointing and rollback recovery in transactional systems
 
10/01

Lecture 12
   

Mid Term Exam (10/08): Covers all topics covered up until Thursday's (10/01) lecture.


 
   
CPU Scheduling algoirithms  
The kernel’s job isn’t just to run processes: it has to juggle them, making sure they all make progress without stepping on each other’s toes. The trick is in the scheduling. A good scheduling algorithm has to balance several competing goals: latency, throughput, priority, and fairness. No single approach is perfect, so we’ll explore a range of scheduling algorithms, each with its own strengths and trade-offs. Scheduling is less about finding the perfect algorithm than about deciding which imperfection we are willing to live with. Ch {6} [SCG]
Ch {7} [AD]
Ch {2} [AT]




 

Objectives:

  1. Evaluate scheduling criteria including fairness and time quanta.
  2. Explain and compare different approaches to scheduling: preemptive and non-preemptive
  3. Explain and analyze scheduling algorithms: FCFS, shortest jobs, priority, round-robin, multilevel feedback queues, and the Linux completely fair scheduler.
  4. Understand how CPU scheduling algorithms function on multiprocessors.
  5. Evaluate which scheduling algorithm is appropriate for a workload based on competing scheduling criteria
 
10/06

10/08

10/13

10/15


Lecture 13


Mid Term Exam

Lecture 15

Lecture 16
   
Deadlocks  

A large number of processes compete for a limited set of resources. When these processes are not properly synchronized, they can end up in a deadlock: each process waits for an event that only another process in the same set can trigger. Everyone's waiting and nobody is going anywhere. Note that everyone waiting politely for someone else to go first isn't a solution because then nobody would.

In this module, we will examine the conditions that give rise to deadlocks and distinguish them from their close cousins, starvation and livelock. We will then explore three strategies for dealing with deadlocks. Prevention eliminates at least one of the necessary conditions for deadlock. Avoidance uses safe states and the Banker's Algorithm to grant resource requests only when doing so keeps the system in a safe state. The detection-and-recovery strategy allows deadlocks to occur, identify them, assess them, and resolve them through process termination, resource preemption, or rollback.

Finally, we will consider the ostrich algorithm, which takes a rather different approach: ignore deadlocks and hope for the best. Remarkably, this strategy enjoys more real-world adoption than its name might suggest.

Ch {7} [SCG]
Ch {6} [AT]
Ch {4} [AD]


 

Objectives:

  1. Explain deadlock characterization
  2. Contrast and explain schemes for deadlock prevention
  3. Evaluate approaches to deadlock avoidance
  4. Understand recovery from deadlocks
  5. Determine whether a resource-allocation state is safe using a deadlock-avoidance strategy

 
10/20

10/22


Lecture 17

Lecture 18
   
Memory Management  

Memory is a shared resource, though a running program is spared most of the negotiations that sharing usually entails. Each process works within its own address space, while the operating system coordinates the finite physical memory on which these separate worlds depend. In this module, we will examine how that arrangement works, beginning with address binding, linking, and loading, and following a program’s references to the locations the hardware ultimately accesses.

Contiguous allocation will introduce an awkward distinction: a machine can have plenty of free memory and still lack a single stretch large enough to accommodate a process. We will explore how segmentation and paging organize memory differently, examining their advantages, their limitations, tradeoffs, and the fragmentation each can leave behind. Protection mechanisms and shared pages will show how processes can use common code while keeping their private data separate. Page tables and address-translation hardware will reveal the machinery behind this arrangement, while translation lookaside buffers (TLB) will help keep its bookkeeping from becoming the machine’s principal occupation. Page sizes and page-table structures will bring us to a recurring question: how much memory, and how much time, should we spend managing memory itself? Throughout, we will connect these choices to execution time and throughput, examining how the OS makes a crowded physical memory feel orderly, useful, and reasonably private.

Ch {8} [SCG]
Ch {3} [AT]
Ch {9} [AD]


 

Objectives:

  1. Understand address binding and address spaces
  2. Explain contiguous memory allocations: including their advantages and disadvantages
  3. Analyze the key constructs underpinning paging systems including hardware support, shared pages, and structure of page tables
  4. Explain memory protection in paging environments
  5. Explain segmentation based approaches to memory management alongside settings in which they are particularly applicable
 
10/27

10/29

11/03

11/05



Lecture 19

Lecture 20

Lecture 21

Lecture 22
   
Virtual Memory  

Paging frees a process from the need for contiguous physical memory, but a scheme that requires every page to remain in RAM can still be both restrictive and wasteful. Virtual memory allows a process to run with only some of its pages in physical memory. In this module, we will examine how demand paging makes this possible and what happens when a process references a page that is absent. We will compare page replacement algorithms, explore Belady’s anomaly, and establish why stack algorithms avoid it.

We will then turn to frame allocation and page buffering, asking how the OS can share limited memory while keeping the cost of page faults under control. Locality and the working set model will help us characterize the pages a process needs during each phase of execution. When their combined demand exceeds available memory, the system risks thrashing: much shuffling of pages, remarkably little progress. We will examine how page-fault frequency helps regulate frame allocation and how TLB reach and program structure influence memory performance. Virtual memory is, in effect, the OS promising more memory than it physically possesses and working very hard to keep that promise respectable.

[Ch {9} [SCG]
Ch {3} [AT]
 

Objectives:

  1. Explain demand paging and page faults
  2. Contrast page replacement algorithms and explain Belady's anomaly
  3. Justify the rationale for stack algorithms
  4. Explain frame allocations
  5. Synthesize the concepts of thrashing and working sets
  6. Trace a page-reference string through different page-replacement algorithms
 
11/10

11/12

Lecture 23

Lecture 24

   
Virtualization  

An operating system expects to be in charge of its computer. Virtualization lets several operating systems share one physical machine, each with its own view of the hardware. How can all of them be in charge? The answer lies in the hypervisor, which gives each guest control of its virtual machine while retaining control of the resources they share.

In this module, we will examine what makes this arrangement safe, faithful, and efficient. We will compare Type-1 and Type-2 hypervisors, then explore how binary translation, paravirtualization, and hardware assistance address the challenges of virtualizing the x86 architecture. From the processor, we will turn to memory: how does an address inside a guest ultimately identify a location in physical RAM, and how can several guests safely share that RAM? Shadow page tables, nested paging, and memory reclamation provide the mechanisms. We will also examine their performance costs and connect these ideas to virtual appliances and the flexible allocation of resources in cloud computing.

Ch {7} [AT]
Ch {16} [SCG]
Ch {10} [AD]
 

Objectives:

  1. Explain how Virtual Machine Monitors (VMMs) share physical resources while maintaining isolation between guests
  2. Use the Popek and Goldberg requirements to reason about safety, fidelity, and efficiency in virtualization
  3. Compare the architectures and responsibilities of Type-1 and Type-2 hypervisors
  4. Explain how x86 privilege levels and sensitive instructions affect virtualization, and how binary translation, paravirtualization, and hardware assistance address these challenges
  5. Distinguish guest virtual, guest physical, and host physical addresses, and explain how shadow page tables and nested paging support address translation
  6. Explain memory overcommitment and how ballooning and deduplication help manage physical memory across VMs

 
11/17

11/19


Lecture 25

Lecture 26

   
Containers  

Containers are a lightweight, often faster-starting alternative to virtual machines. A virtual machine boots its own operating system, while containers running on a single host share the host’s kernel. In this module, we will see how a container is ultimately just a group of processes. A container can do what ordinary processes can do, subject to restrictions and isolation mechanisms enforced by the kernel. The abstraction may be lightweight, but the kernel is still doing the heavy lifting.

How can two web servers both listen on port 80 without getting in each other’s way? Namespaces give each server its own view of the network, while control groups (cgroups) limit how much CPU time, memory, and disk I/O each can use. Think of a hotel: everyone gets a room, but no one gets the entire breakfast buffet. Linux capabilities determine which privileged operations a process can perform, and seccomp filters the system calls it can make. We will also see how a container image packages an application and its dependencies in read-only layers. Run two containers from the same image, and each gets its own writable layer, so changes in one leave the other’s files untouched.

 
  Objectives:
  1. Compare containers and virtual machines in terms of what they virtualize, which kernel they use, and where they draw the isolation boundary.
  2. Explain how Linux namespaces give processes separate views of resources such as process IDs, network interfaces, and filesystem mounts.
  3. Explain how cgroups, capabilities, and seccomp work together to control resource use, privileged operations, and system calls.
  4. Distinguish a container image from a running container, and explain how shared read-only image layers and a per-container writable layer form the container’s filesystem.
 
11/20


Lecture 26-B
   

Thanksgiving Break
: Fall Recess at CSU November 21-29.

 
   
File Systems  
Data managed on a hard disk must be amenable to updates, discovery, and retrievals. The underlying storage system only deals with disk blocks. In this module we explore a foundational construct in file systems -- the file control block. We will explore how the design of the file control block informs efficiency in retrievals of content. We will round out our discussion of file systems with a look at the Unix File System, the File Allocation Table (FAT), and NTFS. A “file” may seem reassuringly simple from the user’s perspective; however, they do require a lot of machinery underneath.
Ch {5} [AT]
Ch {4} [RR]
Ch {10, 11} [SCG]
 

Objectives:

  1. Summarize file system structure
  2. Contrast contiguous allocation vs indexed allocations
  3. Explain the Unix File System
  4. Explain and contrast Windows File Systems: the File Allocation table and NTFS

 
12/01

12/03

Lecture 27

   
Mass Storage  
In this module, we will explore the technologies behind the two popular data storage frameworks: hard disk drives and solid state drives. We will explore the key enablers of these systems. In the case of solid-state drives we will explore issues such as write-amplifications, wear leveling, and read-disturb errors. These devices expose the same basic abstraction to the OS while behaving very differently underneath it. Ch {11} [SCG]
Ch {12} [AD]
 

Objectives:

  1. Explain data storage in hard disk drives
  2. Explain data storage in solid state drives
  3. Compare the performance characteristics and physical constraints of HDDs and SSDs
  4. Explain how write amplification, wear leveling, and read-disturb errors affect SSD behavior and lifetime
 
12/08




   
Disk Scheduling Algorithms  
In this module we will explore the rationale and need for disk scheduling algorithms. We will review several metrics that are used to assess the peformance of disk scheduling algorithms. We will explore and analyze several different disk scheduling algorthms. These algorithms are used to inform disk head movements as data are retrieved. We will look at the major approaches and the trade-offs each makes.
Ch {12} [SCG]
 

Objectives:

  1. Explain the rationale and need for disk scheduling
  2. Profile and interpret the performance of disk scheduling algorithms
  3. Contrast the performance characteriscs of diverse disk scheduling algorithms: FCFS, SSTF, SCAN, C-SCAN, and LOOK
  4. Evaluate the suitability of different disk scheduling algorithms for different workload characteristics
 
12/10



   

Comprehensive Final Exam in Clark A-2202
Tuesday, December 15th, 6:20-8:20 pm


 
   


 



Department of Computer Science, Colorado State University,
Fort Collins, CO 80523 USA
© 2026 Colorado State University