Basic CS-Operating System [TCS Placement]: Sample Questions 10 - 10 of 35

Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 10

Operating System

Write in Short

Short Answer▾

In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking.


Table of Difference between Load-Time and Run-Time Dynamic Linking
load-time dynamic linkingrun-time dynamic linking
load-time linking is when symbols in the library, referenced by the executable (or another library) are handled when the executable/library is loaded into memory, by the operating system.Run-time linking is when you use an API provided by the OS or through a library to load a DLL or DSO when you need it, and perform the symbol resolution then.
For load-time dynamic linking Load module to be loaded is read into memory.With run-time dynamic loading: Some of the linking is postponed until actual reference during execution.
Any reference to a target external module causes that module to be loaded and the references are updated to a relative address from the start base address of the application module.Then the correct module is loaded and linked.
Executables have “blank spaces” in their symbol tables that need filling by some library. These blank-spaces are usually filled in at load-time, or compile time.You can negate the need for “blank spaces” in the symbol table by using runtime linking.
Load time dynamic linking is usually accomplished by statically linking your application to a . lib file contains the code for automatically establishing runtime links to symbols to be found in . dll or . so files at program startup.Runtime linking is used for more dynamic functionality such as plugin loading.

Developed by: