50.6k views
5 votes
a tlb is used with the memory system of the previous exercise: (s1, s2, p) frame address 0 4 16 52 (a) which of the following addresses will find a match in the tlb: 0, 1, 2, 3, 4, 9, 16, 17, 52, 64, 65, 66. (b) which of these addresses cause a page fault? which result in an error?

User JayL
by
7.8k points

1 Answer

4 votes

(a) Addresses that will find a match in the TLB:

Addresses 0, 4, 16, 52 will find a match in the TLB because they correspond to frame addresses present in the TLB (0, 4, 16, 52).

How to explain

(b) Addresses causing a page fault and resulting in an error:

Addresses 1, 2, 3, 9, 17, 64, 65, 66 cause a page fault as they are not present in the TLB or the page table.

Addresses 64, 65, 66 also result in an error as they exceed the memory size, thus being out of the valid address range in the memory system of the previous exercise.

User K M
by
8.4k points