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

CONCURRENCY: MUTUAL EXCLUSION AND SYNCHRONIZATION-het karia

Blog banner

Why Consistency in Eating Habits Matters and How Meal Maharaj Makes It Easy

Blog banner

Data Exfiltration

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

Uniprocessor Scheduling

Blog banner

Full Disk Encryption on Digital Forensics

Blog banner

internet email and it's applications

Blog banner

Information of meesho company

Blog banner

The Truth Behind Viral DIY Dental Hacks

Blog banner

Deadlock in operating system

Blog banner

Digital Footprints An Emerging Dimension of Digital Inequality

Blog banner

Functions Of Operating Systems

Blog banner

Philadelphia Experiment : Was it real?

Blog banner

Security issues in Sensor Networks and gathering admissible evidence in Network Forensics

Blog banner

Study of Sniffing Tools

Blog banner

Depression

Blog banner

Indian Culture and Tradition

Blog banner

Data Security and Data Privacy in Data Science

Blog banner

TRAIN TRAVELING

Blog banner

Process states

Blog banner

WORKFRONT SOFTWARE

Blog banner

File and File System Structure

Blog banner

THE DESIRE OF MANY

Blog banner

Disk scheduling

Blog banner

Threads

Blog banner

GIS

Blog banner

Method of Evaluating Information Security Level in an Organization

Blog banner

Thumb Sucking: When It’s Normal and When It Becomes a Dental Problem

Blog banner

How Social Media Algorithms Will Work in 2026?

Blog banner

Modern Operating Systems

Blog banner

Unlocking the Secrets: Basic Operations of Computer Forensic Laboratories

Blog banner

Loneliness

Blog banner

How Preschool Annual Day Shapes Confidence, Emotions, and Growth

Blog banner

What does the Australian summer have in store for your oral health?

Blog banner

Pipedrive

Blog banner

10 Problems you face if you are an Otaku

Blog banner

Distributed Denial of Service (DDoS) attack

Blog banner

Maharashtrian culture: Tradition, Art, Food

Blog banner

Linux Threads:

Blog banner

HubSpot

Blog banner

Palm Vein Biometric Technology; Contactless vein authentication

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner