陷阱处理程序、中断调度例程和中断服务例程 (ISR) 之间有什么区别?

What is the difference between trap handler , interrupt dispatch routine and interrupt service routine (ISR)?

我在阅读 Windows 内部资料时对上述概念感到困惑。

所有三个术语 - 陷阱处理程序、中断调度例程和中断服务例程 (ISR) - 与 Windows 驱动程序级编程(相对于用户模式 ​​Windows 应用程序)有关。

"Traps" 是程序员启动的中断(相对于自动生成的 "exceptions")。

"Interrupt service routine" (ISR) 是为处理 "interrupt" 而编写的过程。尽管有不同类型的中断(硬件中断、编程陷阱、CPU 异常等),但 ISR 的格式在所有情况下都是相似的。 "trap handler" 是 ISR。

应始终尽快处理中断。

最后"Dispatch routines"是执行硬件的主要入口点I/O。