Ask Question
26 April, 22:35

Assume that a user has many programs; some of them share libraries with each other. The user sometimes runs more than one of these programs at the same time. The user's disk is always slower than the user's main memory (RAM). For this user, in the space below, compare the performance of "dynamic linking" with "static linking" along the following axes: With respect to the time programs take to start up With respect to required disk space With respect to the amount of system memory in use at runtime.

+4
Answers (1)
  1. 27 April, 01:44
    0
    Dynamic linking is when the compiler links the function call with its definition at the run time or the linking of the library routines with the program code takes place at the run time. it is also called as late binding.

    Static linking is when the compiler links the function call with its definition at the compile time or the library routines are linked with the program code at the compile time. it is also called as early binding.

    a) The performance of the program will be faster as the load time for dynamic linking is reduced as the shared library code is already present in the memory.

    b) in static linking the statically linked are larger in size because external programs are buit in the executable files so the memory space required is more whereas in dynamic linking the disk space is not wasted as in dynamic linking only one copy of shared library is kept in memory.

    c) the dynamic linking will be slower as it will using moe system memory at the run time
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Assume that a user has many programs; some of them share libraries with each other. The user sometimes runs more than one of these programs ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers