The Gateway to Computer Science Excellence
+4 votes
159 views
Does the dynamically linked files are slower in execution as compared to static linked files?
in Operating System by Boss (36.6k points) | 159 views

1 Answer

+5 votes
Best answer
It is a general rule of thumb that statically done operations are much faster than the dynamically done operations. In static operations, the operations are known before compiling, so the compiler can take steps to optimize them, and the general cost of allocating memory during runtime, which is done during the dynamic operations,  is skipped.

However, there are some disadvantages to this also,  if you want everything to be statically done then you should know the exact requirements of your code before hand, also all the operations should be deterministic. Whereas, the dynamic system gives you the flexibility of deciding things on the fly. Majority of the systems do things dynamically except for some Real time OS where the performance is of critical importance.
by Active (3.1k points)
edited by
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,384 answers
198,542 comments
105,342 users