Trap

Home > Computer Science > Computer Architecture > Interrupts and Exceptions > Trap

A trap is a software-generated interrupt caused either by an exception condition or a specific instruction. It is used to switch the CPU from user mode to kernel mode to handle critical tasks.