Trap instruction a type of interrupt in synchronization typically caused by an exceptional condition. This type of exception is reported immediately following the execution of the trapping instruction.Traps allow execution of a program or task to be continued without loss of program continuity. The operating system performs some action before returning control to the originating process.