wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual Memory

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

Interrupts - Types, Working & Importance

Blog banner

Deadlock

Blog banner

Install Ubuntu in Vmware

Blog banner

Understanding E-mail Servers

Blog banner

Race Conditions

Blog banner

JUSTICE FOR EVERY “BEZUBAAN ANIMAL”

Blog banner

Elegant fashion style

Blog banner

MY FIRST BLOG?

Blog banner

Modern Operating Systems.

Blog banner

Image Steganography: Hiding Secrets in Plain Sight

Blog banner

Explain DBMS in Brief

Blog banner

 " Healing of Yoga "

Blog banner

Cache memory

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Memory Management in Operating System

Blog banner

What Your Music Taste Reveals About Your Personality

Blog banner

Marvel Cinematic Universe

Blog banner

GraphQL

Blog banner

Short note on Microsoft office

Blog banner

Deadlock

Blog banner

Virtual machine.

Blog banner

Smartphone Security: Vulnerabilities and Attacks

Blog banner

10 Reasons Why Guy BestFriends are the Must in Every Girl's Life

Blog banner

Cache Memory in Operating Systems

Blog banner

Types of Big Data

Blog banner

5 People who claimed to have Time Traveled

Blog banner

VPN

Blog banner

Solitary Play Activities for Preschoolers: Types and Benefits

Blog banner

Supervised and Unsupervised Learning

Blog banner

Modern operating system

Blog banner

Service Transition Process in ITSM

Blog banner

RSA (Rivest-Shamir-Adelman) Algorithm

Blog banner

Email Privacy

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

Internet of Things and cyber security

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

Jio .....A Revolution ?? ??

Blog banner

Operating system

Blog banner

Deadlock in operating system

Blog banner

Direct Memory Access

Blog banner