Under what circumstances do page faults occur? Describe the actions taken by the operating system when a page fault occurs.
Read moreTable of Contents
Textbook Solutions for Operating System Concepts
Question
Segmentation is similar to paging but uses variable-sized pages.Definetwo segment-replacement algorithms, one based on the FIFO pagereplacementscheme and the other on the LRU page-replacement scheme.Remember that since segments are not the same size, the segment thatis chosen for replacement may be too small to leave enough consecutivelocations for the needed segment. Consider strategies for systems wheresegments cannot be relocated and strategies for systems where they can.
Solution
The first step in solving 9 problem number 11 trying to solve the problem we have to refer to the textbook question: Segmentation is similar to paging but uses variable-sized pages.Definetwo segment-replacement algorithms, one based on the FIFO pagereplacementscheme and the other on the LRU page-replacement scheme.Remember that since segments are not the same size, the segment thatis chosen for replacement may be too small to leave enough consecutivelocations for the needed segment. Consider strategies for systems wheresegments cannot be relocated and strategies for systems where they can.
From the textbook chapter Virtual
Memory you will find a few key concepts needed to solve this.
Visible to paid subscribers only
Step 3 of 7)Visible to paid subscribers only
full solution