1 / 10

Chapter 10 Storage management

Chapter 10 Storage management. Elements requiring storage Programmer and system controlled storage Static Storage Management Heap Storage Management. Elements requiring storage. Code segments for translated user programs System run-time programs - e.g. libraries

earl
Download Presentation

Chapter 10 Storage management

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 10 Storage management • Elements requiring storage • Programmer and system controlled storage • Static Storage Management • Heap Storage Management

  2. Elements requiring storage • Code segments for translated user programs • System run-time programs - e.g. libraries • User defined data structures and constants • Subprogram return points • Referencing environments

  3. Elements requiring storage • Temporaries in expression evaluation • Temporaries in parameter transmission • Input-Output buffers • Miscellaneous system data - tables etc

  4. Operations that require storage allocation • Subprogram call and return operations - creation and deletion of activation records • Explicit data structure creation and destruction operations • Component insertion and deletion operations

  5. Programmer and system controlled storage • Pros and cons: • Programmer knows when to allocate / free storage. • Programmer may interfere with the system-controlled storage management • Storage-Management Phases • Initial allocation • Recovery • Compaction and reuse

  6. Static Storage Management • Static allocation : • allocation during translation that remains fixed throughout execution. • Does not allow recursive subprograms

  7. Dynamic Allocation:Heap Storage Management Memory used for dynamic allocation of data objects in somewhat unstructured manner is called heap storage. OS HEAP STACK

  8. Heap Storage Management • Tasks: • allocation, • recovery, • dangling references • garbage collection • compaction, • reuse • Fixed size elements • Variable size elements

  9. Heap Compaction used used used used used used used

  10. Heap Compaction used used used used used used used

More Related