0% found this document useful (0 votes)
88 views2 pages

Virtual Memory in Operating System Virtual Memory in Operating System

Virtual memory allows secondary storage to be accessed like main memory through address translation. It divides both virtual addresses used by programs and physical memory into fixed-size pages and frames. When a program accesses a virtual address, it is translated to the physical frame storing the corresponding page through hardware and software. Paging is the most common virtual memory technique and maps process pages to available frames in main memory in a non-contiguous way.

Uploaded by

aadi1988
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views2 pages

Virtual Memory in Operating System Virtual Memory in Operating System

Virtual memory allows secondary storage to be accessed like main memory through address translation. It divides both virtual addresses used by programs and physical memory into fixed-size pages and frames. When a program accesses a virtual address, it is translated to the physical frame storing the corresponding page through hardware and software. Paging is the most common virtual memory technique and maps process pages to available frames in main memory in a non-contiguous way.

Uploaded by

aadi1988
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Virtual Memory in Operating System

Virtual Memory is a storage allocation


cation scheme in which secondary memory can be addressed as though it
were part of main memory. The addresses a program may use to reference memory are distinguished from the
addresses the memory system uses to identify physical storage sites, and program generated addresses are
translated automatically to the corresponding machine addresses.
It is a technique that is implemented using both hardware and software. It maps memory addresses used by a
program, called virtual addresses, into physical addresses iin computer memory.

Paging

Paging is the most common memory management technique:

 virtual space of process divided into fixed


fixed-size pages
 virtual address composed of page number and page offset
 physical memory divided into fixed
fixed-size frames
 page in virtual space fits into frame in physical memory

Paging-

 Paging is a fixed size partitioning scheme.


 In paging, secondary memory and main memory are divided into equal fixed size partitions.
 The partitions of secondary memory are called as pages.
 The partitions of main memory are called as frames.

 Each process is divided into parts where size of each part is same as page size.
 The size of the last part may be less than the page size.
 The pages of process are stored in the frames of main memory depending upo
uponn their availability.

Example-

 Consider a process is divided into 4 pages P 0, P1, P2 and P3.


 Depending upon the availability, these pages may be stored in the main memory frames in a non-
non
contiguous fashion as shown-

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy