I am confused between above mentioned concepts while reading Windows internals.
All three terms - trap handler , interrupt dispatch routine and interrupt service routine (ISR) - relate to Windows driver level programming (as opposed to user-mode Windows applications).
"Traps" are programmer-initiated interrupts (vs. automatically generated "exceptions").
An "Interrupt service routine" (ISR) is a procedure written to handle an "interrupt". Although there are different kinds of interrupts (hardware interrupts, programmatic traps, CPU exceptions, etc, etc), the format of an ISR is similar in all cases. A "trap handler" is an ISR.
Interrupts should always be serviced as quickly as possible.
Finally "Dispatch routines" are the main entry points for performing hardware I/O.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With