in Operating System
522 views
0 votes
0 votes

A simplified view of thread states is $Ready$, $Running$, and $Blocked$,where a thread is either ready and waiting to be scheduled, is running on the processor, or is blocked (for example, waiting for I/O). This is illustrated in Figure 9.31. Assuming a thread is in the Running state, answer the following questions, and explain your answer:


a. Will the thread change state if it incurs a page fault? If so, to what state will it change?
b. Will the thread change state if it generates a $TLB$ miss that is resolved in the page table ? If so, to what state will it change?
c. Will the thread change state if an address reference is resolved in the page table? If so, to what state will it change?

in Operating System
522 views

1 Answer

1 vote
1 vote

A. On a page fault the thread state is set to blocked as an I/O operation is required to bring the new
page into memory.
B. On a TLB-miss, the thread continues running if the address is resolved in the page table.
C. The thread will continue running if the address is resolved in the page table.

Ref:

CHAPTER 9

Related questions