Steps in Context Switching
I am asked to describe the steps involved in a context switch (1) between two different processes and (2) between two different threads in the same process. During a context switch, the kernel will save the context of the old process in its PCB and then load the saved context of the new process scheduled to run. Context switching between two different threads in the same process can be scheduled by the operating system so that they appear to execute in parallel, and is thus usually faster than context switches between two different processes. Is this too general or what would you add to