wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Introduction to Virtual Memory - 080

profile
Meet Darji
Aug 15, 2024
0 Likes
0 Discussions
122 Reads

What is Virtual Memory? Virtual memory is a memory management technique used by operating systems to provide an "illusion" of a large and contiguous memory space, even when the physical memory (RAM) is limited. It allows a computer to run larger applications or multiple applications simultaneously without running out of memory.

Why Do We Need Virtual Memory?

  • Limited Physical Memory: Computers have a finite amount of RAM. Virtual memory allows systems to overcome this limitation by using disk space as an extension of RAM.
  • Process Isolation: Virtual memory ensures that each process runs in its own memory space, providing protection and isolation. This prevents one process from interfering with another's memory, enhancing system stability and security.
  • Efficient Memory Usage: It allows systems to load only the necessary parts of a program into RAM, keeping the less frequently used parts on disk. This optimizes the usage of available memory.

How Does Virtual Memory Work?

  • Address Translation: Virtual memory involves translating virtual addresses (used by programs) into physical addresses (used by hardware). This is managed by the Memory Management Unit (MMU) within the CPU.
  • Paging: Virtual memory is typically implemented using a technique called paging. The memory is divided into fixed-size blocks called pages. The virtual address space of a process is divided into pages, which can be mapped to any location in physical memory or stored on disk.
  • Virtual Pages: These are the blocks of virtual memory. They do not need to be contiguous.
  • Page Frames: These are the blocks of physical memory (RAM) that correspond to virtual pages.
  • Page Tables: A page table is maintained for each process, mapping virtual pages to physical page frames. When a program accesses memory, the MMU uses the page table to translate the virtual address to a physical address.

Basic Concepts:

  • Page Fault: A page fault occurs when a process tries to access a page that is not currently in physical memory (RAM). The operating system must then load the page from disk into RAM, which can cause a delay.
  • Swap Space: This is a portion of the disk allocated for storing pages that are not currently in physical memory. It acts as an extension of RAM.



Comments ()


Sign in

Read Next

A-B-C of Networking: Part-1 (Basics)

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner

Interrupts

Blog banner

Social Media Sentiment Analysis

Blog banner

Article on Team Work

Blog banner

Understanding the 'Ambiverts'

Blog banner

EID UL FITR

Blog banner

COMMUNICATION

Blog banner

Privacy in Social Media and Online Services

Blog banner

Memory Management in Operating System

Blog banner

TOP 5 GAMING GADGETS (2024)

Blog banner

Expressing and Measuring Risk (Risk Management)

Blog banner

Flipkart

Blog banner

How College Events Build Real-world Skills You Can’t Learn From Textbooks

Blog banner

Twisted world

Blog banner

Scheduling in Operating Systems

Blog banner

Types of Big Data

Blog banner

Yoga in INDIA and ABROAD

Blog banner

Basic Security For SOAP Services

Blog banner

Understanding - Proof of Work!

Blog banner

CYBERPEACEKEEPING: NEW WAYS TO PREVENT AND MANAGE CYBERATTACKS

Blog banner

Different types of scam Fraud

Blog banner

Music helps reduce stress

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

Stories Woven in Silk: The Meaning Behind Patola Motifs

Blog banner

What if COVID does not exist!

Blog banner

Recipe of Paneer Butter Masala

Blog banner

What is a geographic information system (GIS)?

Blog banner

What are NFT s?

Blog banner

Google App Engine

Blog banner

File Sharing

Blog banner

TRIGGERS IN DATABASE

Blog banner

Getting to Kashmir: Alternative to the Jammu-Srinagar highway

Blog banner

KPMG (Klynveld Peat Marwick Goerdeler)

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

A little bit of salt is all the hash needs!

Blog banner

I/O Buffering

Blog banner

15 Websites that will make your life easier ...!!!

Blog banner

Data Mining

Blog banner

Volatile Memory & Non-Volatile Memory Explained

Blog banner

MEMORY MANAGEMENT

Blog banner

Social Engineering Attacks

Blog banner