Memory  Management                                                                                                                                   Print this page
<< Previous |  First |  Last |  Next >>       


There are two simple ways to slightly remove the problem of memory wastage:

 
Coalesce
: Join the adjacent holes into one large hole , so that some process can be accomodated into the hole.
                      
 
Compaction
: From time to time go through memory and move all hole into one free block of memory.

During the execution of process, a process may be swapped in or swapped out many times. it is obvious that a process is not likely to be loaded into the same place in main memory each time it is swapped in. Further more if compaction is used, a process may be shiefted while in main memory.

 

A process in memory consists of instruction plus data. The instruction will contain address for memory locations of two types:

    • Address of data item
    • Address of instructions used for branching instructions
<< Previous |  First |  Last |  Next >>