Operating System - memory Management Part 4 - Notes, Study notes of Operating Systems

Description about Memory Management, Segmentation, User’s View of a Program, Logical View of Segmentation, Sharing of Segments, Background.

Typology: Study notes

2010/2011

Uploaded on 09/01/2011

visir66
visir66 🇮🇳

4.4

(74)

97 documents

1 / 70

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
MEMORY MANAGEMENT
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46

Partial preview of the text

Download Operating System - memory Management Part 4 - Notes and more Study notes Operating Systems in PDF only on Docsity!

MEMORY MANAGEMENT

Shared Pages

Example

User’s

View of a

Program

Logical View of Segmentation

1 4 2 3 user space physical memory space

Virtual Memory

  • (^) Background
  • (^) Demand Paging
  • (^) Process Creation
  • (^) Page Replacement
  • (^) Allocation of Frames
  • (^) Thrashing
  • (^) Demand Segmentation
  • (^) Operating System Examples

Definition: Virtual Memory

  • (^) Virtual Memory is a memory management technique that allows execution of a program that is not completely in memory.
  • (^) Virtual memory considers main memory as extremely large uniform array of storage.
  • (^) Virtual memory provides separation of user logical memory from physical memory.

Background

  • (^) As we know that instructions being executed must be in the main memory.
  • (^) This needs to place entire logical memory into the main memory.
  • (^) Under this consideration we can only execute a program of maximum size requirement is equal to main memory.

Background

  • (^) It is not important to load complete program to main memory because - (^) Error handling codes executes occasionally. - (^) Some of the functions are rarely used. - (^) Some Data Structures reserve more memory space than their actual requirement.
  • (^) This suggests that the ability to store program partially would have many benefits.

Advantages of Virtual Memory

  • (^) Availability of multiple program in main memory will increase degree of multi-programability , throughput and CPU utilization.
  • (^) If multiple programs are running together, less input output is required from users side.

Working of Virtual Memory

  • (^) A program can be handled by users perspective without knowing anything about physical memory.
  • (^) It is possible to provide extremely large virtual memory when a limited physical memory is present there.

Virtual-address Space

  • (^) The virtual address space of a process refers to the logical or virtual view of how a process is stored in the main memory.

Virtual-address Space

  • (^) Here we allow the heap to grow upwards in memory as it uses dynamic memory allocation.
  • (^) Stack is growing downwards through successive function calls.
  • (^) Besides this sparse address space is available to serve the growing requirements.

Shared Library

Using Virtual

Memory

Implementation of Virtual

Memory

  • (^) Virtual memory can be implemented via:
    • (^) Demand paging
    • (^) Demand segmentation