ALL > Computer and Education > courses > university courses > undergraduate courses > Operating System > zstu-(2021-2022)-1 > student homework directories > 2019329621196麻宣政 >
2019329621196麻宣政homework11 Version 0
👤 Author: by 1436830195qqcom 2021-12-29 10:50:15
The steps fpr handling a page fault:

(1)The memory address requested is first checked, to make sure it was a valid memory request.
(2)If the reference was invalid, the process is terminated. Otherwise, the page must be paged in.
(3)A free frame is located, possibly from a free-frame list.
(4)A disk operation is scheduled to bring in the necessary page from disk. ( This will usually block the process on an I/O wait, allowing some other process to use the CPU in the meantime. )
(5)When the I/O operation is complete, the process’s page table is updated with the new frame number, and the invalid bit is changed to indicate that this is now a valid page reference.
(6)The instruction that caused the page fault must now be restarted from the beginning, ( as soon as this process gets another turn on the CPU. )

Please login to reply. Login

Reversion History

Loading...
No reversions found.