homework-7 Version 0 |
|
👤 Author: by 819755696qqcom 2019-11-07 09:49:55 |
When page fault happens in virtual memory management, what is the steps of OS to handle this situation?
Step1:Check an internal table for this process to determine whether the reference was a valid or invalid memory access.
Step2:If the reference was invalid, terminate the process. If it was valid, but we have not yet brought in that page, we now page it in.
Step3:Find a free fream.
Step4:Schedule a disk operation to read the desired page into the newly allocated fream.
Step5:Modify the internal table and page table after the desk read is complete.
Step6:Restart the instruction that was interrupted by the trap.