Module 1: Processes & Scheduling: Mistake Clinic
This clinic turns wrong moves into reusable judgment. Use it after each practice page and again before the quiz or checkpoint.
Module-Specific Mistake Radar
Start with these traps. Replace or extend them with real mistakes from your own work.
| Mistake to look for | Where it shows up | Symptom | Repair evidence |
|---|---|---|---|
| Finishing Scheduling Policy Lab with only a final answer | Scheduling Policy Lab | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Finishing Process Model Workshop with only a final answer | Process Model Workshop | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Finishing Context Switch Clinic with only a final answer | Context Switch Clinic | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Finishing Code Katas with only a final answer | Code Katas | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Treating The Process Abstraction: Address Space, Registers, PC as vocabulary instead of a tool | The Process Abstraction: Address Space, Registers, PC | The explanation names the concept but cannot decide between two cases. | Write one example, one non-example, and the rule that separates them. |
| Treating The Process Control Block and Kernel State as vocabulary instead of a tool | The Process Control Block and Kernel State | The explanation names the concept but cannot decide between two cases. | Write one example, one non-example, and the rule that separates them. |
Practice Mistake Checks
Pull any miss from these checks into your mistake log.
Scheduling Policy Lab
Source: practice/01-scheduling-policy-lab.md
Identify the error in each statement:
- "Round-Robin is always fairer than SJF because it gives everyone a turn."
- "SJF is the best policy for interactive systems."
- "Throughput and average turnaround time are the same metric in different units."
- "A smaller quantum always improves responsiveness."
- "MLFQ is just Round-Robin with multiple queues."
Process Model Workshop
Source: practice/02-process-model-workshop.md
Identify the error:
- "After
fork(), the child has its own stack, so changes there affect the parent too." - "
fork()always copies the entire parent address space immediately." - "The PCB lives in the process's own memory."
- "A process in the BLOCKED state is using CPU."
- "A zombie is a running process you cannot kill."
- "After
exec, the program counter is wherever it was beforeexecwas called."
Context Switch Clinic
Source: practice/03-context-switch-clinic.md
Identify the error:
- "A context switch just saves and restores registers."
- "Switching between threads of the same process costs the same as switching between processes."
- "An ASID-capable CPU never has to flush the TLB on a context switch."
- "Interrupts are the only way to force a context switch."
- "The scheduler picks the next task before the trap into the kernel."
- "Threads share the stack."
Repair Protocol
For each real mistake:
- Reproduce the failure on the smallest example, trace, proof, query, command, or design sketch.
- Name the hidden assumption.
- Repair the artifact.
- Save evidence that changed: failing then passing test, corrected proof step, revised diagram, safer command, benchmark, or review note.
- Add one retrieval card beginning with Check... before... or Do not use... when....
Mistake Log
| Date | Mistake | Symptom | Root cause | Repair evidence | Retrieval card |
|---|---|---|---|---|---|
| Starter | Pick one radar row above | Explain how it would fail in this module | Name the assumption | Add a counterexample or corrected artifact | Write the card before closing the page |
Completion Standard
- At least five real mistakes are logged.
- At least two mistakes include a counterexample or failing test.
- At least one mistake connects to an older semester skill.
- At least one correction changes code, a proof, a diagram, a command transcript, a query, or a design decision.