Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Exercises

9.14 Assume that a program has just referenced an address in virtual memory. Describe a scenario in which each of the following can occur. (If no such scenario can occur, explain why.)
• TLB miss with no page fault
• TLB miss and page fault
• TLB hit and no page fault
• TLB hit and page fault
9.15 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 (i.e. is waiting for I/O.) This is illustrated in Figure 9.31. Assuming a thread is in the Running state, answer the following questions: (Be sure to explain your answer.)
Figure 9.31 Thread state diagram for Exercise 9.15.
343
a. Will the thread change state if it incurs a page fault? If so, to what new state?
b. Will the thread change state if it generates a TLB miss that is resolved in the page table? If so, to what new state?
c. Will the thread change state if an address reference is resolved in the page table? If so, to what new state?

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint