Monday 1 June 2015

Q44,paper3,j13. Interrupt which arises from illegal or erroneous use of an instruction or data is



(A) Software interrupt
(B) Internal interrupt
(C) External interrupt
(D) All of the above
Answer B.
Explanation.
A hardware interrupt is triggered by some external event like  a network interface, when it receives some  unusual data may trigger an interrupt causing the processor to suspend the running program and jump to a designated subroutine that interrogates the interface. It grabs the data, and processes it before returning control to whatever code was running before the interrupt.
Hardware interrupts may be maskable (i.e., the processor may be able to ignore them) and non-maskable. 
Internal interrupt  refers to exceptions like interrupts that occur in response to a processing error, such as referencing an invalid address in memory, division by zero, or similar error condition.
Software interrupts are machine instructions that amount to a call to the designated interrupt subroutine. These are identified by interrupt number. Software interrupts are especially useful in operating system implementations. They allow programs to call operating system subroutines without knowing the physical address locations of those subroutines. For example , when the operating system is updated and its layout changes, user programs do not need to be recompiled or relinked with new address information.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.