wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual Memory

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

Explain Kernel in OS

Blog banner

The Difference Between Plaque and Tartar Explained Simply

Blog banner

Fossil Hunting 101 at the Peace River, Arcadia, Florida, USA

Blog banner

Secure Hypertext transfer protocol

Blog banner

Spyware

Blog banner

What is Network Security?

Blog banner

Importance of Morning Routines for Students During the Festive Season

Blog banner

Starting Android Activity Using Intent

Blog banner

Big Data Architecture

Blog banner

?How long does wisdom tooth pain last?

Blog banner

Understanding Business Layer in Data Science

Blog banner

Facebook Shut Down an AI Program!!! Facebook AI bots became Terminators???

Blog banner

The Future of Patola Weaving in a Sustainable Fashion World

Blog banner

Top 10 Logos and their meanings

Blog banner

New Ransomware Encrypts Your Android And Then Changes PIN Lock

Blog banner

Docker Framework

Blog banner

Moral Injury Among Healthcare Workers: When Caring Conflicts With Conscience

Blog banner

Domain Name System

Blog banner

JUSTICE FOR EVERY “BEZUBAAN ANIMAL”

Blog banner

Phishing Isn't Getting Smarter — You're Just Seeing More of It

Blog banner

COMMUNICATION

Blog banner

Man VS Nature

Blog banner

What do you mean by online marketing and why do you need to know about it

Blog banner

Microsoft powerpoint presentation

Blog banner

Google classroom

Blog banner

1 Dentist in Maroubra, Sydney and her 10 obsessions

Blog banner

How Social Media Algorithms Will Work in 2026?

Blog banner

Exploring the Power of Encase Forensic Tools: Unraveling Digital Mysteries

Blog banner

INTRODUCTION TO C#

Blog banner

?What Children Learn Between Activities: The Hidden Learning Moments in a Preschool Day

Blog banner

My favourite food

Blog banner

Modern Operating Systems

Blog banner

Banaras

Blog banner

The New Rules of UI/UX Design Every Website Must Follow in 2026

Blog banner

Internet of Things and cyber security

Blog banner

Personalised Name Labels vs. Handwritten Stickers: Which Is Better for Your Child’s School Essentials?

Blog banner

Can ChatGPT Answer All My Questions About Life?

Blog banner

Palm Vein Biometric Technology; Contactless vein authentication

Blog banner

DIGITAL TECHNOLOGY

Blog banner

Memory managment

Blog banner

File Organization and Access

Blog banner

Types Of Interrupt

Blog banner