Context Switch
context switch
Kernel saves all state corresponding to the execution of Process 0 in memory
Kernel installs state associated with the execution of Process 1 on processor
Process 0
Kernel/
Scheduler
Process 1
ADD(r1, r2, r3)
LD( r3, 1000 , r4)
…
MUL(r4, r5, r6)
ADD(r5, r21, r0)
…
SUB(r8, r9, r7)
Previous slide
Next slide
Back to first slide
View graphic version