Save this video free

ECE344 Fall 2026 (Sec 1) Lec 12 - Basic Scheduling

Jon Eyolfson · 51:32 · Watch on YouTube

Part of University of Toronto ECE 344. See all 26 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Jon Eyolfson connects xv6’s process memory layout and RISC-V trap handling to the mechanics of scheduling: interrupts save state, context switches restore another process, and the scheduler chooses what runs next. He compares FCFS, shortest job first, shortest remaining time first, and round robin, showing how waiting time, response time, fairness, and context-switch overhead trade off; in the round-robin example, a quantum of 3 produces 7 context switches.

Key takeaways

Chapters

0:00 Page-Table Permissions and xv6’s Address-Space Layout
2:40 Guard Pages, Kernel-Mapped Pages, and Linux vDSO
8:20 RISC-V System Calls, the Trampoline, and Trap Frames
13:20 Timer Interrupts, Yielding, and Preemptive Multitasking
18:20 Context Switching, xv6’s Scheduler, and Scheduling Trade-Offs
27:30 FCFS Scheduling and Waiting-Time Calculations
33:50 Shortest Job First and the Risk of Starvation
38:10 Shortest Remaining Time First Adds Preemption
41:09 Round Robin Queues and a Three-Unit Quantum
48:05 Choosing a Round-Robin Quantum and Reviewing the Algorithms

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 the the last one because the last >> Yeah. Yeah. >> Yeah. Because the the L0 the entry in the L0 page table that's what gives you your permissions, right? >> Unless you or earlier if you have huge pages or giga pages, but at some the last translation will tell you. >> Okay. >> Doesn't it need to read the validate exists? Yeah, it has to walk to there first. >> Yeah. Yeah. But for like the permissions of the actual final translation itself, it's just the one on the L0 page table. Uh

2:40 Alrighty, welcome back to operating systems. So we got over the we officially are now done the first hurdle of the course. So now it gets easy againish. So first half of this lecture is mostly going to be helping you understand stuff for lab 3. It's going to be a lot of details. You don't have to worry about too much and then we'll be sailing. So first we will talk about some XV6 stuff and how it lays out a process's address space. So it starts a program at virtual address zero that's where the text or the code is. Then there's data so global variables after that something called a guard page and then a onepage stack. So the stack's not very big then a heap that can grow up from those BRK system calls. Then there's an it grows up into an unmapped region. And then at the max

3:29 virtual address that your process can use, there's a page map for something called a trampoline and a trap frame. Sounds a lot more fun than they are. So under that stack, that's a page that the process can't touch. And that's how you actually detect a stack overflow because well a stack overflow basically

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Jon Eyolfson.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.