Ask Question
21 September, 20:42

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.

+5
Answers (1)
  1. 22 September, 00:30
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers