Question: Suppose two processes need to be mapped into main memory using pages. Process P1 consists of 7 pages, and process P2 consists of 4 pages.
Suppose two processes need to be mapped into main memory using pages. Process P1 consists of 7 pages, and process P2 consists of 4 pages. Assume main memory consists of 16 frames, a logical page is the same size as a physical frame, and that 4 entries in a page table fills up a frame of memory. Assume also that within the process' allocated address spaces, there are two pages of shared code 'X' and 'Y' common to both address spaces of Frame #10 and #12, respectively. Complete the following design for a memory management system that can store these two processes and their page tables in RAM by dragging the answers to their corresponding position in the following tables. Note: The "Unallocated" option can be dragged and dropped multiple times.
| P1's Page Table | P2's Page Table | |||||
|---|---|---|---|---|---|---|
| Logical Page | Physical Frame | Shared Code | Logical Page | Physical Frame | Shared Code | |
| 0 | 1 | 0 | 0 | |||
| 1 | 2 | 1 | 11 | |||
| 2 | 3 | 2 | 10 | blank | ||
| 3 | 8 | 3 | 12 | blank | ||
| 4 | 9 | |||||
| 5 | blank | Y | ||||
| 6 | blank | X | ||||
| Frame # | RAM |
|---|---|
| 0 | blank |
| 1 | blank |
| 2 | blank |
| 3 | blank |
| 4 | P1 Page Table entries 0-3 |
| 5 | blank |
| 6 | P2 Page Table entries 0-3 |
| 7 | blank |
| 8 | blank |
| 9 | blank |
| 10 | P1 - blank and P2 - blank |
| 11 | blank |
| 12 | P1 - blank and P2 - blank |
| 13 | blank |
| 14 | blank |
| 15 | P1 Page Table entries blank |

12 10 P2 - Page 0P1 - Page O P1 - Page 1P1 - Page 2 Unallocated P1- Page 3 P1- Page 4 Page 6 Page 2 2-Page Page 5age 34603 4-6 0-3 12 10 P2 - Page 0P1 - Page O P1 - Page 1P1 - Page 2 Unallocated P1- Page 3 P1- Page 4 Page 6 Page 2 2-Page Page 5age 34603 4-6 0-3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
