CS FundamentalsVery hardGATE CS
A virtual address is 0x00403A7C on a system with 4 KB pages and a two-level page table (10-bit outer index, 10-bit inner index, 12-bit offset). What are the outer index, inner index and offset (in decimal)?
- A. 1, 3, 2684
- B. 4, 3, 2684
- C. 1, 58, 124
- D. 0, 1027, 2684
Correct answer: A. 1, 3, 2684
0x00403A7C = 0000 0000 01|00 0000 0011|1010 0111 1100. Top 10 bits = 1, next 10 bits = 3, offset 0xA7C = 2684.
More Operating Systems questions
- 32-bit addresses, 4 KB pages, 4-byte PTEs, two-level paging (10/10/12). A process uses only 8 MB of code at virtual address 0 and 4 MB of…
- A system has resource types A, B, C. Available = (2,1,0). Allocation: P0 (1,1,0), P1 (0,1,2), P2 (2,0,1), P3 (1,0,0). Max: P0 (3,2,2), P1…
- Banker's algorithm state: Available = (3,3,2). Allocation: P0 (0,1,0), P1 (2,0,0), P2 (3,0,2), P3 (2,1,1), P4 (0,0,2). Max: P0 (7,5,3), P1…
- Two resource types X, Y. Available = (1,1). Allocation: P0 (1,0), P1 (0,1), P2 (1,1). Max: P0 (2,1), P1 (1,2), P2 (2,2). How many of the…
- A system has R identical instances of a resource shared by 4 processes needing at most 3, 4, 5 and 2 instances respectively. What is the…
- n processes share 12 identical units of a resource, and each process may need up to 4 units. What is the largest n for which deadlock is…