software interrupt
software interrupt
As with a hardware interrupt, this causes the processor tostore the current state, store identifying information aboutthe particular interrupt, and pass control to a first levelinterrupt handler.
A trap is similar except that it is caused by an unexpectedsoftware condition or error (e.g. divide by zero, undefinedinstruction) rather than a deliberate instruction.