view point of PC Assembly Language by Paul A. Carter
Interrupts ---------- external : caused by devices outside the CPU
|
|
|
|
|______ internal : raised from within the CPU
|
|
|------ Traps : Error interrupts (generally do not return)
|
|______ software interrupts : Interrupts generated from the interrupt Instruction (e.g DOS uses these to implement its API , modern OSs use a C based interface or a lower lever interface at the kernel lever)
view point of Operating Systems Principles by Lubomir F. Bic & Alan C. Shaw
Interrupts : a hardware signal issued to the CPU from some external device
|
|
|------ Process management (a time-out interrupt generated by a timer device)
|
|______ Device management (e.g I/O devices)
Traps : handled through internal interrupt mechanisms
|
|
|------ overflow or underflow
|
|
|------ pages/segments management
|
|
|______ SVC (supervisor call , which form the basic interface between the OS kernel and the rest of the software)
my opinion
Interrupts and Traps are same enssentially , the software interrupts and the SVC refer the same thing.