A switch to kernel mode, wherein the operating system performs some action before returning control to the originating process is known to be called trap.
A trap is known to be a kind of a synchronous interrupt triggered that is said to be done by an exception in that of a user process to carry out functionality.
Note that the Exception conditions such as invalid memory access, division by zero, is said to be one that can alter or trigger a trap in an OS. A trap alters the mode of an OS to that of a kernel routine.
Hence, A switch to kernel mode, wherein the operating system performs some action before returning control to the originating process is known to be called trap.
Learn more about operating system from
https://brainly.com/question/22811693
#SPJ4