Abstract


3 Steps

  1. Saves the state of the CPU for the Process (进程) into the process’s Process Control Block (PCB). The Program Counter of the process is saved to a different Register. So the interrupted process can be resumed later
  2. Does its other business
  3. Invokes the Process Scheduler

C Implementation

Any variables changed inside the interrupt handler should be declared with volatile

Interrupt Handler Pointer