Processes and threads: scheduling, context switches, isolation
9 steps · about 7 h 50 min · Intermediate
- Processes vs Threads: What a Context Switch Costs (article, Exploring Computer Science, 15 min)
A gentle, practical start that shows what the OS schedules and why shared versus private memory is the key trade-off.
- Process vs Thread (article, GeeksforGeeks, 10 min)
A quick comparison table to fix the vocabulary before you go deeper.
- Context switch (reference, Wikipedia, 15 min)
It names the triggers of a context switch and how the OS saves and restores the process control block (PCB).
- Process/Thread Scheduling (doc, Introduction to Operating Systems: Principles and Practice, 25 min)
It covers timer interrupts, time quanta and the cost of switching, so you can see how scheduling works in practice.
- CSE 120 Operating Systems Principles, Lecture 4: Threads (doc, UC San Diego, 40 min)
A university lecture that explains kernel threads, user threads and preemptive scheduling.
- CS111, Lecture 18 - Dispatching and Scheduling (doc, Stanford, 40 min)
It walks through the dispatcher, thread states and round-robin trade-offs, which are the mechanics of a context switch.
- CMPSCI 377 Operating Systems, Lecture 6 (doc, UMass Amherst, 25 min)
It compares process and thread switch costs, including TLB invalidation, which links scheduling to memory isolation.
- Operating Systems: Three Easy Pieces (doc, Arpaci-Dusseau, UW-Madison, 4 h)
This free book is the best deep dive. Read its chapters on CPU scheduling and address spaces to see how the OS isolates memory.
- OSTEP-Notes: Homework solutions for Operating Systems: Three Easy Pieces (repo, GitHub (Shreehari-Acharya), 1 h)
Work the homework on scheduling and address translation, then check your answers here.