CS370: Operating Systems |
![]() |
| [Schedule] | [Assignments] | [Grading] | [Syllabus] | [Infospaces] | [Canvas] | [Home] |
Last updated on Monday, November 30, 2026 2:48 PM |
|||
| Professor | Lecture Coordinates | ||
Shrideep Pallickara |
|
||
| 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] |

| 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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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:
|
|||
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 |