wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual Memory

profile
Harsh Jain
Jul 11, 2023
0 Likes
0 Discussions
42 Reads

Virtual memory is a technique used by computer systems to effectively manage the limited amount of physical memory (RAM) available. It allows the computer to access more memory than actually exists by using a combination of RAM and the hard disk.

In simple terms, virtual memory acts as a temporary storage space for data and instructions that are currently not in use. When an application is running, it requires a certain amount of memory to store its data and instructions. However, if the computer's physical memory is full, the operating system can transfer some of the less frequently used data and instructions from the RAM to the hard disk.

This process is known as paging, where the operating system divides the virtual memory into small fixed-sized blocks called pages. Each page is stored either in the RAM or on the hard disk. When a program needs to access a certain page, the operating system checks if it is present in the RAM. If it is, then it is directly accessed. If not, the operating system chooses a page from RAM to be moved to the hard disk, making space for the required page to be brought in from the hard disk.

The Virtual Memory Manager is responsible for managing this process. It keeps track of which pages are in the RAM and which are on the hard disk. It also decides which pages need to be moved in and out of the RAM based on the program's requirements and the availability of space.

One advantage of virtual memory is that it allows multiple programs to run simultaneously, even if the physical memory is insufficient. Each program is allocated a certain amount of virtual memory, making it appear as if it has dedicated memory space.

However, virtual memory does have its limitations. Since the hard disk is slower than RAM, accessing data from the hard disk takes more time, resulting in slower performance. This is known as "thrashing" and can occur if there are too many programs running simultaneously, causing frequent page swapping between the RAM and the hard disk.

In conclusion, virtual memory is a useful technique that allows computer systems to efficiently manage memory resources. It enables more programs to run simultaneously and provides the illusion of having more memory than is physically available. By intelligently swapping pages between the RAM and the hard disk, virtual memory ensures that the most frequently used data and instructions remain in the RAM, resulting in efficient program execution.


Comments ()


Sign in

Read Next

Review on Recovering Deleted Files

Blog banner

Modern operating systems (OS)

Blog banner

Traditional Unix System

Blog banner

What is Data, Information and Knowledge?

Blog banner

Steganography and Steganalysis

Blog banner

DMZ: Your Secret Weapon for Data Security

Blog banner

Delhi city

Blog banner

The seven-step improvement process

Blog banner

Data Security and Data Privacy in Data Science

Blog banner

INDIAN CHEAPEST COSMETICS BRAND

Blog banner

How Sleep Impacts Learning and Behaviour for Toddlers?

Blog banner

Dudhasagar waterfall ?

Blog banner

Cyber Attacks -- Trends Patterns and Security Countermeasures

Blog banner

Virtual machine.

Blog banner

Understanding the 'Ambiverts'

Blog banner

File Management In OS

Blog banner

Guidelines for a low sodium diet.

Blog banner

Linux Memory Management

Blog banner

DBMS and various career options related to it.

Blog banner

Practical Implementation of Client Server model using TCP/IP.

Blog banner

Real Time Scheduling

Blog banner

Ola

Blog banner

Software

Blog banner

What Your Music Taste Reveals About Your Personality

Blog banner

PERSONAL STORIES

Blog banner

Topic: Sessions in Operating system

Blog banner

Some web vulnerabilities

Blog banner

The New Classic: Indo Western Patola Outfits for Today’s Woman

Blog banner

How to lose belly fat

Blog banner

Networking 101: How to Build Meaningful Connections in College

Blog banner

A Short History of GIS

Blog banner

Virtualisation

Blog banner

Concept and definition of m-commerce

Blog banner

Getting started with Android Studio

Blog banner

SECURITY RISKS OF REMOTE WORKING

Blog banner

How To Invest In Indian Stock Market @ BSE & NSE ~ Tutorial 3

Blog banner

What are the different types of E-mail crime and process of email forensic?

Blog banner

Telegram and it's features

Blog banner

Why Mumbai Professionals Are Switching Back to Home-Style Tiffin Meals

Blog banner

Risk factors in service transistion

Blog banner

E-BUSINESS RISK MANAGEMENT

Blog banner

Student Grade Calculator in LISP

Blog banner