2,653 views
0 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 1 vote

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 0 votes
may be its differentiated based on taken from physical memory or virtual memory

sorry if i dont make sense
Position:
Show:

Related questions

1 1 vote
1 1 answer
89
89 views
GO Classes asked Aug 13
89 views
Suppose a $32K \times 8K$ matrix $A$ with $1$-byte elements is stored in row-major order in virtual memory.Assume:Only this program occupies physical memory. The matrix b...
2 2 votes
2 2 answers
135
135 views
GO Classes asked Aug 11
135 views
An operating system can use page tables and exceptions to perform allocation on demand, where it does not allocate physical memory for a program until the program tries t...
0 0 votes
1 1 answer
1.5k
1.5k views
none30 asked Jul 1, 2023
1,523 views
On a system using demand paging, it takes 200 ns to satisfy a memory request if the page is in memory. If the page is not in memory, the request takes 7 ms if a free fram...
0 0 votes
1 1 answer
1.2k
1.2k views
none30 asked Jul 1, 2023
1,235 views
On a system using demand - paged memory, it takes 120 ns to satisfy a memory request if the page is in memory. If the page is not in memory, the request takes 5 ms. What ...