Trap

In computing, a trap is a software exception handling mechanism. A trap can be caused either by an exceptional condition in the processor itself, or by an exceptional condition in the user program. When a trap occurs, the processor transfers control to a trap handler routine. The trap handler can either be a user-specified routine, … Read more