in Operating System
568 views
1 vote
1 vote
in Operating System
568 views

2 Comments

nice! you modified the tesbook question!!!
0
0
yes I didnt feel the need for the whole question as this is the only part that confused me

can you explain the relation
0
0

1 Answer

1 vote
1 vote
Best answer

Overlays are a solution to the limitation of contiguous memory allocation. Overlay is a memory management technique used by the programmers to split their object code into independent sections which are dynamically loaded whenever required by the overlay driver. Overlay area is the contiguous memory allocated to the user programs. But only the required instructions need to be loaded in memory at a time not the entire program. Common data and routines may be kept in memory. Needed instructions and data replace those no longer in use. It overcomes the problem of limited size of programs that can be loaded into main memory. Virtual Memory accomplishes similar goals.

selected by

4 Comments

but virtual memory can use non contiguous right?
0
0
Your comment is not exactly right. Virtual memory is abstraction of contiguous memory which is physically not contiguous in memory, may be in different pages in memory. Also overlays has some overhead on the programmer. In case of virtual memory, programmer need not to bother.
0
0
ok so is this right to say that overlay will always be contiguous both as an abstraction and physically but virtual memory may or may not be contiguous physically?
0
0
Overlays are not generally used with virtual memory management technique. Yes it is physically contiguous and virtual memory may or may not be physically contiguous.
0
0