Difference Between Static and Dynamic Loader
Static Loader |
Dynamic Loader |
---|---|
Static loader loads the entire program into the memory before the execution starts. | Dynamic loader loads only the necessary part of the program for execution. |
It does not need any runtime linking. | It needs runtime linking. |
It is used incase of static loader. | Dynamic linking is used incase of dynamic loader. |
This is faster as no files are changes during the execution. | It is slower as the files as the files are uploaded at the run time. |
Static loader makes memory wastage. | Dynamic memory is memory efficient. |
It is suitable for high performance applications. | This is suitable for resource constraint applications. |
It eliminates the runtime errors | It can create runtime error if the required dependency is not available. |
Static loader is used for compiler languages. | It is used for interpreted languages. |
It is less flexible as it loads the entire program in the memory. | It is more flexible. |
It is more predictable as the entire program and dependencies are loaded in the memory once. | It is less predictable than static loader. |
Static loader requires more disk space. | Dynamic loader requires less disk space. |
Static and Dynamic Loader in Operating System
An Operating system is the critical component for managing the various memory resources in the computer system. One of the essential tasks of the operating system is to manage the executable programs or applications in the computer system. A program needs to be loaded into the memory for the purpose of execution. For the execution context, the loader comes into the picture.
Contact Us