ISRO Scientist/Engineer CSE 2023Operating Systems › Memory Management and Virtual Memory
ISRO Scientist/Engineer CSE 2023 PYQ: Any attempt by a process to access memory allocated to OS or process of other user results into
Any attempt by a process to access memory allocated to OS or process of other user results into
- ATrap to OSCorrect answer
- BContext Switching
- CPage fault
- DInvocation to Scheduler Despatch
Answer
(A) Trap to OS
Approach
Recall how memory protection is enforced in an operating system. When a process generates a logical address, the hardware (MMU) checks it against the process's allocated memory bounds. If the address lies outside the allowed range, the hardware raises a trap (an exception/interrupt) that transfers control to the operating system, which then handles the violation.
Reviewed by ISRO IQ Editorial Team.