University of Toronto ECE 344
Professor Jon Eyolfson · University of Toronto · 26 lectures with notes
Every lecture with its full transcript and chapters, and one search across all 26 lectures.
ECE344 Fall 2026 (Sec 1) Lec 30 - Virtual Machines
A hypervisor virtualizes CPU, memory, and devices so multiple isolated operating systems can share one physical machine.
ECE344 Fall 2026 (Sec 1) Lec 29 - Advanced Memory Allocation
Fast allocation comes from matching memory strategies to size, lifetime, and physical-contiguity requirements.
ECE344 Fall 2026 (Sec 1) Lec 28 - Basic Memory Allocation
How malloc turns page-sized memory into reusable blocks, and why alignment, fragmentation, and lifetime management shape allocator design.
ECE344 Fall 2026 (Sec 1) Lec 27 - Advanced Page Replacement
The clock algorithm approximates LRU with one MMU access bit, while scan-resistant policies protect repeatedly used pages from one-time reads.
ECE344 Fall 2026 (Sec 1) Lec 25 - Advanced Filesystems
Journaling and copy-on-write protect file-system consistency by making multi-block updates recoverable after crashes.
ECE344 Fall 2026 (Sec 1) Lec 24 - inodes
Linux inodes store file metadata and block locations, while directories map names to inodes through hard and symbolic links.
ECE344 Fall 2026 (Sec 1) Lec 22 - Disks
Disk performance and reliability depend on how operating systems handle blocks, SSD erase rules, and RAID redundancy.
ECE344 Fall 2026 (Sec 1) Lec 21 - Advanced Scheduling
Linux scheduling uses priorities, CPU affinity, and virtual deadlines to balance fair processor sharing with responsiveness.
ECE344 Fall 2026 (Sec 1) Lec 20 - Parallelization Example
A pthread bank simulation demonstrates how to fix data races and deadlocks while parallelizing transfers.
ECE344 Fall 2026 (Sec 1) Lec 18 - Semaphores
Mutexes prevent data races; semaphores coordinate thread ordering and producer-consumer flow.
ECE344 Fall 2026 (Sec 1) Lec 17 - Building Locks
Atomic compare-and-swap enables safe locks, while mutexes and futexes avoid wasting CPU cycles on prolonged spinning.
ECE344 Fall 2026 (Sec 1) Lec 16 - Locks
A lock must make checking and acquiring ownership atomic; otherwise threads can both enter the critical section.
ECE344 Fall 2026 (Sec 1) Lec 13 - Threads
Pthreads make concurrency inexpensive, but shared memory, thread lifetimes, and scheduling order demand careful design.
ECE344 Fall 2026 (Sec 1) Lec 14 - Threading Models
User threads are fast and library-managed, but kernel threads are required for true parallelism and independent blocking.
ECE344 Fall 2026 (Sec 1) Lec 13 - Threads
Pthreads share a process’s memory but have independent stacks, making synchronization and argument lifetime essential.
ECE344 Fall 2026 (Sec 1) Lec 12 - Basic Scheduling
Scheduling policies trade off waiting time, responsiveness, fairness, and the overhead of switching processes.
ECE344 Fall 2026 (Sec 1) Lec 11 - Page Faults
Jon Eyolfson connects SV39 page-table translation, TLB performance, and demand paging through BRK, MMAP, and page-fault handling.
ECE344 Fall 2026 (Sec 1) Lec 10 - Page Tables
SV39 uses a three-level page-table tree to make sparse virtual address spaces far cheaper to represent.
ECE344 Fall 2026 (Sec 1) Lec 9 - Virtual Memory
Virtual memory uses per-process page tables and MMU hardware to translate addresses while isolating processes from one another.
ECE344 Fall 2026 (Sec 1) Lec 8 - Event Loops and Process Groups
Combine signalfd and poll to handle child exits and input in one efficient, single-threaded event loop.
ECE344 Fall 2026 (Sec 1) Lec 7 - Advanced IPC
Pipe EOF depends on closing every write end; close-on-exec also enables reliable exec-failure reporting.
ECE344 Fall 2026 (Sec 1) Lec 5 - Process Management
Linux parents must collect child exit statuses; otherwise, terminated children become zombies and surviving children may be reparented.
ECE344 Fall 2026 (Sec 1) Lec 4 - Process Creation
Unix programs create processes with `fork` and replace them with `execve`, a combination that explains child behavior and shell commands.
ECE344 Fall 2026 (Sec 1) Lec 3 - Libraries
A library’s shared ABI determines whether programs keep working when its implementation changes.
ECE344 Fall 2026 (Sec 1) Lec 2 - Kernels
System calls form the protected boundary between user programs and the kernel, regardless of programming language.
ECE344 Fall 2026 (Sec 1) Lec 1 - Why Operating Systems?
ECE344 uses Linux and xv6 to show how operating systems manage resources and shape the behavior of everyday programs.