The Gateway to Computer Science Excellence
0 votes
Dynamically Linked Libraries imply more page faults than static? Why?
in Operating System by Active (2.3k points) | 64 views

2 Answers

0 votes
in case of static linking we will load everything at one time and there will be no dependency at run time and all required library are there in Main memory but in case of dynamic linking everytime we need to refer library it will load and run time which creates page fault.So Dynamic linking will have more page faults.
by Active (3k points)
0 votes
Because in dynamically linked libraries, libraries are'nt moved to memory with the program, when a program needs a dll, it search in the memory for already present dll, but if it didn't find the required dll in memory, then page fault happens and it is imported.

With static linked libraries, a copy of library is linked with program at compile time and is therefore imported to memory with the program.
by (445 points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,306 answers
105,010 users