Which of the following is not typically a benefit of dynamic linking ? I.…
2016
Which of the following is not typically a benefit of dynamic linking ?
I. Reduction in overall program execution time.
II. Reduction in overall space consumption in memory.
III. Reduction in overall space consumption on disk.
IV. Reduction in the cost of software updates.
- A.
I and IV
- B.
I only
- C.
II and III
- D.
IV only
Attempted by 62 students.
Show answer & explanation
Correct answer: B
Correct answer: Only statement I is not typically a benefit of dynamic linking.
Statement I — Reduction in overall program execution time: Not a typical benefit. Dynamic linking can add runtime linking overhead (loader work and indirect calls) and so does not generally reduce, and may even increase, overall execution or startup time.
Statement II — Reduction in overall space consumption in memory: Benefit. Shared libraries are loaded once and shared among processes, lowering total RAM usage compared with many statically linked copies.
Statement III — Reduction in overall space consumption on disk: Benefit. Installing one shared library consumes less disk space than distributing many executables each containing its own copy of the library.
Statement IV — Reduction in the cost of software updates: Benefit. Updating or patching a shared library can update many dependent programs without rebuilding or redistributing each application separately.
Summary: Only statement I is not typically a benefit of dynamic linking; statements II, III, and IV describe common advantages.