What are the number of page faults generated for this string when:
For each case, assume that all page frames are vacant when the first address in the reference string is referenced. In addition, indicate which reference results in a page fault.
| page number | frame | valid | permissions | referenced | dirty |
|---|---|---|---|---|---|
| 12 | 40 | 1 | r | 1 | 0 |
| 13 | 32 | 0 | rx | 0 | 0 |
| 14 | 1 | 1 | rw | 0 | 0 |
| 15 | 11 | 1 | rw | 0 | 0 |
| 16 | 17 | 1 | rx | 0 | 0 |
| 17 | 6 | 1 | r | 0 | 0 |
The valid bit indicates whether or not the page frame listed in the page table entry is, in fact, associated witih the virtual page number.
The virtual memory system uses Clock with the clock hand scanning the pages in increasing virtual page number order. The hand is currently point to page 15, and this is the page that Clock will consider next when a page frame is needed.
Assume that the page size (and page frame size) is 100 bytes. Consider the operations given below. They are executed in order. For each operation, indicate what happens. For example, if the operation results in a fault, say what kind of fault it is. If it is a page fault, then say which page frame is used to satisfy the page fault and how the clock hand and page table are updated. If the operatino does not result in a fault, then say which physical address results from the virtual address translation, and say how the page table is updated.