Give an example of memory management in operating systems.
Example:
A program having re-locatable code was created. Suppose it would be loaded at
address 0000. In its code, the program refers to the following addresses: 20,
55, 60,100, and 250. If the program is loaded into memory starting at location
600 how those addresses have to be adjusted?
Answer:
All addresses need to be adjusted by 600. So the adjusted addresses would be
620, 655,660,700, and 850.
|