# Trap instruction

Last edited: 2026-02-05

Trap instruction

A trap instruction is sent to when an application in user mode tries to access hardware without using a system call . This is passed to the OS to judge if the call was illegitimate or harmful. While this is happening, the process is stopped from doing anything else.