Computer Science, asked by gopis438, 1 year ago

What is a trap instruction? explain its use in operating systems?

Answers

Answered by Anonymous
7
In computing and operating systems, a trap, also known as an exception or a fault, is typically[NB 1][1] a type of synchronousinterrupt typically caused by an exceptionalcondition (e.g., breakpoint, division by zero, invalid memory access). A trap usually results in a switch to kernel mode, wherein the operating system performs some action before returning control to the originating process. A trap in a system process is more serious than a trap in a user process, and in some systems is fatal. In some usages
Similar questions