Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Which of the following is NOT an advantage of... Start Learning for Free
Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ?
  • a)
    Smaller sizes of executable files
  • b)
    Lesser overall page fault rate in the system
  • c)
    Faster program startup
  • d)
    Existing programs need not be re-linked to take advantage of newer versions of libraries
Correct answer is option 'C'. Can you explain this answer?
Verified Answer
Which of the following is NOT an advantage of using shared, dynamicall...
Refer Static and Dynamic Libraries In Non-Shared (static) libraries, since library code is connected at compile time, the final executable has no dependencies on the the library at run time i.e. no additional run-time loading costs, it means that you don’t need to carry along a copy of the library that is being used and you have everything under your control and there is no dependency.
View all questions of this test
Most Upvoted Answer
Which of the following is NOT an advantage of using shared, dynamicall...
Introduction:
Shared, dynamically linked libraries and statically linked libraries are two different approaches to linking libraries with executable files. While both have their advantages, shared, dynamically linked libraries have certain benefits over statically linked libraries. This response explains why option 'C' is the correct answer, stating that faster program startup is not an advantage of using shared, dynamically linked libraries.

Explanation:
1. Smaller sizes of executable files:
- One of the advantages of using shared, dynamically linked libraries is that it results in smaller executable files.
- Statically linked libraries are directly included in the executable file, resulting in larger file sizes.
- On the other hand, shared libraries are loaded at runtime, allowing multiple programs to share the same library code, thereby reducing the overall file size.

2. Lesser overall page fault rate in the system:
- Another advantage of shared, dynamically linked libraries is that it leads to a lesser overall page fault rate in the system.
- When a program is statically linked with libraries, all the library code is loaded into memory along with the program.
- This can result in more page faults as the memory requirements increase, potentially impacting system performance.
- In contrast, shared libraries are loaded into memory only when required, reducing the overall page fault rate.

3. Existing programs need not be re-linked to take advantage of newer versions of libraries:
- This is another advantage of shared, dynamically linked libraries over statically linked libraries.
- When a program is statically linked with libraries, any updates or changes in the library code require re-linking and recompiling the entire program.
- However, with shared libraries, existing programs do not need to be re-linked to take advantage of newer versions of libraries.
- The updated shared library can simply be replaced, and the changes will be reflected in all programs that use that library.

4. Faster program startup:
- Contrary to the other advantages, faster program startup is not an advantage of using shared, dynamically linked libraries.
- When a program is linked with shared libraries, it incurs additional overhead during program startup.
- This is because the operating system needs to locate and load the required shared libraries into memory before executing the program.
- On the other hand, statically linked libraries are already included in the executable file, resulting in faster program startup as there is no need to locate and load external libraries.

Conclusion:
From the given options, the correct answer is option 'C' - faster program startup. While shared, dynamically linked libraries offer advantages such as smaller executable file sizes, a lesser overall page fault rate, and the ability to use newer library versions without re-linking programs, faster program startup is not one of them.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ?a)Smaller sizes of executable filesb)Lesser overall page fault rate in the systemc)Faster program startupd)Existing programs need not be re-linked to take advantage of newer versions of librariesCorrect answer is option 'C'. Can you explain this answer?
Question Description
Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ?a)Smaller sizes of executable filesb)Lesser overall page fault rate in the systemc)Faster program startupd)Existing programs need not be re-linked to take advantage of newer versions of librariesCorrect answer is option 'C'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ?a)Smaller sizes of executable filesb)Lesser overall page fault rate in the systemc)Faster program startupd)Existing programs need not be re-linked to take advantage of newer versions of librariesCorrect answer is option 'C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ?a)Smaller sizes of executable filesb)Lesser overall page fault rate in the systemc)Faster program startupd)Existing programs need not be re-linked to take advantage of newer versions of librariesCorrect answer is option 'C'. Can you explain this answer?.
Solutions for Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ?a)Smaller sizes of executable filesb)Lesser overall page fault rate in the systemc)Faster program startupd)Existing programs need not be re-linked to take advantage of newer versions of librariesCorrect answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ?a)Smaller sizes of executable filesb)Lesser overall page fault rate in the systemc)Faster program startupd)Existing programs need not be re-linked to take advantage of newer versions of librariesCorrect answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ?a)Smaller sizes of executable filesb)Lesser overall page fault rate in the systemc)Faster program startupd)Existing programs need not be re-linked to take advantage of newer versions of librariesCorrect answer is option 'C'. Can you explain this answer?, a detailed solution for Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ?a)Smaller sizes of executable filesb)Lesser overall page fault rate in the systemc)Faster program startupd)Existing programs need not be re-linked to take advantage of newer versions of librariesCorrect answer is option 'C'. Can you explain this answer? has been provided alongside types of Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ?a)Smaller sizes of executable filesb)Lesser overall page fault rate in the systemc)Faster program startupd)Existing programs need not be re-linked to take advantage of newer versions of librariesCorrect answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ?a)Smaller sizes of executable filesb)Lesser overall page fault rate in the systemc)Faster program startupd)Existing programs need not be re-linked to take advantage of newer versions of librariesCorrect answer is option 'C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev