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

Scala - a programming tool

Blog banner

Virtual memory

Blog banner

A MODERN OPERATING SYSTEM

Blog banner

Buffer Overflow

Blog banner

Steganography and Steganalysis

Blog banner

Cache memory

Blog banner

Meal Maharaj — 3 CP, 5 CP, 8 CP. Same Love, Different Portions

Blog banner

Mariana Trench: The deepest depths

Blog banner

Should you be using a mouthwash? Know from the experts

Blog banner

What makes Nugget RC Racing Florida’s Most Exciting Racing Events?

Blog banner

JUSTICE FOR EVERY “BEZUBAAN ANIMAL”

Blog banner

gis substation

Blog banner

WINDOWS I/ O

Blog banner

Delhi city

Blog banner

Tracking Emails & Email Crimes

Blog banner

Developments in Modern Operating Systems

Blog banner

Latest Email Marketing Techniques

Blog banner

The IT Service Lifecycle

Blog banner

Multiple-Processor Scheduling in Operating System

Blog banner

The 60-Minute Window: What to Do (And What NOT to Do) When You Knock Out a Tooth

Blog banner

Stories Woven in Silk: The Meaning Behind Patola Motifs

Blog banner

IOT- Internet Of Things

Blog banner

Random Forests

Blog banner

Security issues

Blog banner

Excel records

Blog banner

Modern Operating System - Suren Kotian

Blog banner

Subnet Masking

Blog banner

How Schools Can Reduce Exam Stress in Students?

Blog banner

Search Marketing In 2026: From Keywords To Credibility And User Intent

Blog banner

Python as a tool for data analysis

Blog banner

Go Daddy

Blog banner

Top 5 Benefits of Artificial Intelligence

Blog banner

10 Amazing facts about Tokyo Ghoul

Blog banner

MEMORY MANAGEMENT

Blog banner

Multicore CPUs

Blog banner

"Games and the future"

Blog banner

Juveniles, Internet and Computer Crime

Blog banner

Direct Memory Access

Blog banner

FAMILY WHERE LIFE BEGINS....

Blog banner

Functions of Operating System

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

Traditional Unix System

Blog banner