299 views
3 3 votes

Consider a computer system using a $3$-level paging scheme. The Virtual Address is $46$ bits, and the Physical Address is $32$ bits. The page size is $\mathbf{8 ~ K B}$. The page table base register (PTBR) stores the base address of the first-level table $(T_1)$, which occupies exactly one page. Each entry in $T_1$ points to a second-level table $\left(T_2\right)$, and each entry in $T_2$ points to a third-level table ( $T_3$ ). Each entry in $T_3$ is a Page Table Entry (PTE). If the size of each PTE is $\mathbf{3 2}$ bits, what is the maximum number of entries possible in a single $T_3$ table?

2 Answers

2 2 votes
The page size is $8 \mathrm{~KB}=2^{13}$ bytes. Since the first-level table $T_1$ occupies exactly one page and each PTE (or pointer to the next level) is $32$ bits $( 4$ bytes$)$, the number of entries per page is:
$$
\frac{2^{13}}{2^2}=2^{11}=2048 \text { entries }
$$
This structure remains consistent for each level if they are all page-sized. Therefore, a single $T_3$ table can hold $2048$ entries.
Answer:
Position:
Show:

Related questions

2 2 votes
2 2 answers
583
583 views
GO Classes asked Feb 3
583 views
Consider a system with three processes $P_1, P_2$, and $P_3$ arriving at time $t=0$. Their burst times are $\mathbf{1 0 ~ m s}, \mathbf{2 0 ~ m s}$, and $\mathbf{3 0 ~ m ...
2 2 votes
1 1 answer
263
263 views
GO Classes asked Feb 3
263 views
A disk drive has $200$ cylinders $($numbered $0-199)$. The disk arm is currently at cylinder $50$ and was previously at cylinder $40$. The queue of pending requests in FI...
3 3 votes
1 1 answer
260
260 views
GO Classes asked Feb 3
260 views
Consider a disk with a sector size of $\mathbf{512}$ bytes, a block size of $\mathbf{2}$ KB , and a total disk capacity of $\mathbf{1 2 8 ~ G B}$. The file system uses Li...
1 1 vote
1 1 answer
242
242 views
GO Classes asked Feb 3
242 views
Two processes, $P_0$ and $P_1$, share a counting semaphore $\verb|S|$ initialized to $2$ and a binary semaphore $\verb|mutex|$ initialized to $1$. They execute the follow...