DOC PREVIEW
UCF COP 3502 - Memory Management

This preview shows page 1-2 out of 5 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

MEMORY MANAGEMENT: Putting boxes in a warehouse: Box of size 200One Box is removed One new box added and one old box removed Another new box added It is an exact analogy of allocation of Memory space to various processes within a program Now consider a situation where memory is of size 2000, and at some stage after some allocation the memory map looks like followingwhere the free space segments are of sizes 200, 100 , 400 and 400. Let us try to allocate space for size 100. This can fit in any of the free segments. 3 Strategies: First Fit Strategy: Find first hole that is big enoughIf no strategy works one could concatenate the used segments to create larger holes Compaction: There are various forms of compaction. It involves movement of data and updating of links. One form involves moving allocated memory blocks to left side one by one. Other forms could involve moving all the blocks together to left hand side as shown below: Best Fit Strategy: Find smallest hole that is big enough Worst Fit Strategy: Use largest holeA process has several segments. It is possible to store the segments in consecutive holes available. COMPACTION USED UNUSED SEGMENTS Process 1 has 3 segments of size 200+300+100 Process 2 has 2 segments of size 300 + 300 Process 3 has 1 segment of size 300 Unused Memory space of size 5003 Processes stored in memory of size


View Full Document

UCF COP 3502 - Memory Management

Download Memory Management
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Memory Management and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Memory Management 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?