Cavium Networks Interview Question
Software Engineer / DevelopersCountry: India
Interview Type: Written Test
Interrupt is an as asynchronous event that is typically generated by hardware(Ex, I/O) not in sync with processor instruction execution.
While exceptions (software Interrupt)are synchronous events generated when processor detect any predefined condition while executing instruction.
interrupt handler may be interrupted by another interrupt handler and so on. An interrupt handler may defer an exception handler, but an exception handler never defers an interrupt handler. The only exception possible in kernel mode is the page fault.
Interrupt handlers never perform operations that could cause page fault and thus potentially scheduling. In case they give rise to page fault, means it is a bug.
You need to take care while writing/modifying interrupt handler.
interrupt -> outside process affects the current process which affects current execution path
- Anyone August 02, 2014exception -> occurs within process affects current execution path