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.
博客从PC汇编语言和操作系统原理角度探讨中断和陷阱。在PC汇编中,中断分外部和内部,内部含陷阱和软件中断;操作系统里,中断用于进程和设备管理,陷阱通过内部机制处理。作者认为中断和陷阱本质相同,软件中断和SVC指同一事物。
305

被折叠的 条评论
为什么被折叠?



