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
A simplified view of thread states is Ready, Running, andBlocked, wherea thread is either ready and waiting to be scheduled, is running on theprocessor, or is blocked (for example, waiting for I/O). This is illustratedin Figure 9.31. Assuming a thread is in the Running state, answer thefollowing questions, and explain your answer:a. Will the thread change state if it incurs a page fault? If so, to whatstate will it change?b. Will the thread change state if it generates a TLBmiss that is resolvedin the page table? If so, to what state will it change?c. Will the thread change state if an address reference is resolved inthe page table? If so, to what state will it change?
Solution
The first step in solving 9 problem number 15 trying to solve the problem we have to refer to the textbook question: A simplified view of thread states is Ready, Running, andBlocked, wherea thread is either ready and waiting to be scheduled, is running on theprocessor, or is blocked (for example, waiting for I/O). This is illustratedin Figure 9.31. Assuming a thread is in the Running state, answer thefollowing questions, and explain your answer:a. Will the thread change state if it incurs a page fault? If so, to whatstate will it change?b. Will the thread change state if it generates a TLBmiss that is resolvedin the page table? If so, to what state will it change?c. Will the thread change state if an address reference is resolved inthe page table? If so, to what state will it change?
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