Processes and threads: scheduling, context switches, isolation

9 steps · about 7 h 50 min · Intermediate

  1. 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.

  2. Process vs Thread (article, GeeksforGeeks, 10 min)

    A quick comparison table to fix the vocabulary before you go deeper.

  3. 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).

  4. 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.

  5. 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.

  6. 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.

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

  8. 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.

  9. 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.