wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual Memory

profile
Harsh Jain
Jul 11, 2023
0 Likes
0 Discussions
43 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

Who decides your overthinking, anyway?

Blog banner

Teenagers of Today

Blog banner

Steganography

Blog banner

DNS Cache

Blog banner

Deadlock and Starvation

Blog banner

Number Guessing game --lisp

Blog banner

Getting to Kashmir: Alternative to the Jammu-Srinagar highway

Blog banner

Modern operating system

Blog banner

5 ways to save money on catering services in Mumbai

Blog banner

Data Lake

Blog banner

Binary Search Tree (BST) in Data Structure

Blog banner

DEVELOPMENTS LEADING TO MODERN OPERATING SYSTEMS

Blog banner

Deadlock and Starvation

Blog banner

Importance of self defence for girls

Blog banner

Footprinting

Blog banner

Tools to support CSI activities

Blog banner

I/O Buffering

Blog banner

Life lesson

Blog banner

Strengthening Active Directory Security

Blog banner

How Harshad Valia International School is nurturing India’s Young Minds?

Blog banner

BUSINESS MODELS OF E COMMERCE

Blog banner

Dal Bafla Recipe

Blog banner

Points to consider if you're planning to visit Florida in 2026

Blog banner

SQL Injection Techniques

Blog banner

GEOLOGY AND GEO-TECTONIC FRAME WORK OF WESTERN BASTAR CRATON

Blog banner

Why Businesses Are Investing More in Automation than Advertising?

Blog banner

Population

Blog banner

File Systems in OS.

Blog banner

I/O Management and Disk Scheduling

Blog banner

The Khan mehtab transforming the modular switches

Blog banner

Water Resources are about to exhaust...

Blog banner

Memory management

Blog banner

Cyber Forensics in a Ransomware Attack Recovery

Blog banner

semaphores in os

Blog banner

Building Confidence in Children Through Daily Routines and Play

Blog banner

Koinex is shutting down and here is how you can withdraw...

Blog banner

Life of an army person

Blog banner

What is process

Blog banner

Anomaly Detection in Behavioral Data Using Machine Learning

Blog banner

Consumer to consumer business mode

Blog banner

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

Blog banner

Should you be using a mouthwash? Know from the experts

Blog banner