Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 26s8 days 9 hours 54 minutes 26 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 26s8 days 9 hours 54 minutes 26 seconds.

Sign in to watch this lesson
The Process and Limited Direct Execution · 4:38
How the kernel takes the processor back from a program that never makes a system call, and what it does next. We contrast cooperative and preemptive scheduling, watch the timer interrupt preempt a spinning loop on a real Mac, step through the book's context-switch timeline (two register saves and one stack-pointer swap, as in xv6's swtch), and measure what a switch costs, including the cold-cache aftermath that dwarfs it.