L7-MemoryManagement

L7-MemoryManagement - Memory Management CSIS0230A Lecture...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Memory Management CSIS0230A Lecture Seven Background Memory management underlying issues Swapping Address Binding Memory allocation policies Memory placement strategies
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Recommended Readings Section 2.8 and Chapter 9 of Operating Systems, 3 rd edition by Deitel et. al 2 CSIS0230A Principles of Operating Systems
Background image of page 2
References Section 2.8 and Chapter 9 of Operating Systems, 3rd edition by Deitel et. al Chapter 5 of Operating Systems - A Concept- Based Approach, 2nd edition by D.M. Dhamdhere Chapter 7 of Operating Systems: Internal and Design Principles, 6th edition by William Stallings Chapter 8 of Operating System Principles, 7th edition by Silberschatz et. al 3 CSIS0230A Principles of Operating Systems
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Program in execution A process is an instance of a program running on a computer A process has its own address space consisting of: Text region Data region Heap Stack region Question: Where to place these in the main memory? 4 CSIS0230A Principles of Operating Systems
Background image of page 4
Where to place the process? Single User Single Program If process uses all memory, are there any issues? Where to place the OS? Allocate a “fix location” in the “memory” to house the OS Remaining can be used by the program If the program demands more memory than available, can we run the program? Where to place the program? Part of the process memory would not be in physical memory during execution If we need that part, how to find space in physical memory to accommodate that? Some part in memory must be moved out to free space It is possible that same physical memory store different memory locations of the process at different time 5 CSIS0230A Principles of Operating Systems
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Multiple users multiple programs How to share? Divide the physical memory into different partitions; each gives to one process The size of the partitions is fixed The size of the partitions are not fixed; some larger, some smaller Which partition is assigned to which process? A process can always use a fix partition, or it can use any free partition of suitable size If there are more processes than the available partitions, how to handle this? Process A should not touch Process B memory partition. How can we secure the system? 6
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 30

L7-MemoryManagement - Memory Management CSIS0230A Lecture...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online