1,961 views
0 votes
0 votes
In Dynamic Loading:- We load the particular module into the main memory when it is needed.

In Demand Paging:- We load the particular page into the main memory when it is needed.

Both don't seems to be same??

2 Answers

1 votes
1 votes

Dynamic Loading is simply a concept in which a software is written in such a way that when it is packaged to be sent to production (for eg. in a .exe or .jar or .apk ) then any library which is required at runtime is not packaged inside.

Simplest example is in Java when you connect Java to MySQL then you write:-

Class.forName("com.mysql.jdbc.Driver");  

Here we connect to the com.mysql.jdbc.Driver Library which is required to be present in the production environment.

Refer here:- https://en.wikipedia.org/wiki/Dynamic_loading#In_Java

Demand Paging is a concept in totally totally different context. It simply means caching (bringing) the process' page kept in HDD to RAM --> ON DEMAND. -> i.e. on MMU's demand. 

0 votes
0 votes
may be its differentiated based on taken from physical memory or virtual memory

sorry if i dont make sense

Related questions

0 votes
0 votes
1 answer
2