InterviewSolution
| 1. |
How does Dynamic Loading help in better memory space utilization? |
|
Answer» In dynamic LOADING, a routine is not loaded until it is CALLED. This strategy is very effective when dealing with VAST quantities of code, such as error routines, that occur infrequently. All routines are saved in a relocatable load format on the disk. The main program is executed after it has been loaded into MEMORY. When a routine requires to call another routine, the calling routine checks to verify if the other routine is loaded first. If this is not the CASE, the relocatable linking loader is used to load the requested routine into memory and update the program's address tables. The newly loaded routine is then given control. In this way, dynamic loading helps in better memory space utilization. |
|