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

Introduction to Solidity Programming for Blockchain Development

Blog banner

E-security systems | CCTV

Blog banner

E-learning in today's world

Blog banner

What is Network Security?

Blog banner

Raising Emotionally Intelligent Students: The Classroom Beyond Academics

Blog banner

Digital Forensics Challenges and Tools

Blog banner

Data Visualization – Importance and tools (Tableau, Power BI)

Blog banner

Safeguarding Your Data: The Importance of Wireless Encryption

Blog banner

Paginng In OS

Blog banner

Importance of Education

Blog banner

Automating OSINT tasks for efficient Cyber Forensics Investigations

Blog banner

Corporate Discipline.

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 2

Blog banner

Buffer overflow

Blog banner

What is online marketing and why do you need to know about it ?

Blog banner

**THE MUJAWARR: Transforming the Logistics Industry**

Blog banner

Procedure For Corporate High-Tech Investigations

Blog banner

EMAIL INVESTIGATION

Blog banner

Memory Hierarchy

Blog banner

Linux Virtual Machine Process Scheduling

Blog banner

Deadlock and Starvation

Blog banner

NETWORK SECURITY RISKS

Blog banner

Social Media Marketing Trends 2022

Blog banner

Virus

Blog banner

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

Blog banner

Types of Hackers

Blog banner

Operating System

Blog banner

Memory Management

Blog banner

Mendeley (management software)

Blog banner

LiquidPlanner

Blog banner

bulk email software

Blog banner

Every body is beautiful

Blog banner

The Joy of Giving: How Festivals Teach Children Empathy and Gratitude

Blog banner

Memory Management

Blog banner

Multiprocessor and Multicore Organization

Blog banner

MailChimp

Blog banner

Memory hierarchy

Blog banner

How to Run your First android App

Blog banner

BLOCKCHAIN MACHANISM

Blog banner

MULTITHREADING:ENHANCEING PERFORMANCE AND EFFICIENCY IN COMPUTING

Blog banner

Music helps reduce stress

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner