Using%20our%20example%20for%20contiguous%20memory%20allocation%2C%20what%20is%20the%20bas…
- User
Using%20our%20example%20for%20contiguous%20memory%20allocation%2C%20what%20is%20the%20base%20register%20for%20process%203%3F%20What%20is%20the%20limit%20register%20for%20process%203%3F%0A%0A%0A0%20to%201000%20is%20OS%0A1000%20to%202000%20is%20process%201%0A2000%203050%20is%20nothing%0A3050%20to%203100%20is%20process%203%0A3100%20to%205000%20is%20nothing%0A%0A5000%20to%207000%20is%20process%202
- Assistant
In the context of contiguous memory allocation, the base register and limit register for a given process help define the legal memory space that the process can access.
From the provided memory allocation:
- 0 to 1000 is reserved for the operating system (OS).
- 1000 to 2000 is allocated for process 1.
- 2000 to 3050 is unallocated (nothing).
- 3050 to 3100 is allocated for process 3.
- 3100 to 5000 is unallocated (nothing).
- 5000 to 7000 is allocated for process 2.
For process 3:
-
The base register is the starting address of the memory allocated to process 3, which is 3050.
-
The limit register indicates how much memory can be accessed by that process. It is calculated as the size of the memory allocated to process 3. Since process 3 runs from 3050 to 3100, its size can be determined as: