title: Steps in Context Switching
body: <p>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.</p>
  
  <ol>
  <li>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.</li>
  <li>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.</li>
  </ol>
  
  <p>Is this too general or what would you add to explain the process clearer?</p>