wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Virtual memory in os

profile
Disha Parekh
Aug 14, 2024
0 Likes
0 Discussions
135 Reads

Virtual memory is a crucial concept in operating systems that allows for the efficient management of a computer's memory resources. It enables systems to execute larger applications or multiple applications simultaneously, even when the physical memory is limited.


Virtual memory operates primarily through two techniques: paging and segmentation.

- Paging divides the virtual memory into fixed-size pages and maps them onto physical frames in RAM. When a program needs data that isn’t currently in RAM, the OS retrieves it from disk storage (swap space) and loads it into RAM.

- Segmentation involves dividing the virtual address space into segments based on logical divisions, such as functions or objects, which can vary in size

-Benefits:

- Increased Effective Memory Size: Virtual memory allows systems to run larger applications than could fit into RAM.

- Isolation and Protection: Each process operates in its own virtual address space, preventing them from interfering with each other’s memory.

- Efficient Use of RAM: By keeping only active pages in physical memory and swapping inactive ones out, the system can maintain responsiveness even under heavy load.

-While virtual memory offers significant advantages, it can also introduce performance overhead:

- Page Faults: When a program accesses a page not currently in RAM, a page fault occurs, leading to delays as the system retrieves data from disk.

- Thrashing: If the system spends more time swapping pages in and out than executing processes, performance degrades significantly.

systems running database management systems (DBMS) benefit from virtual memory when handling large datasets that exceed physical memory limits.

Additionally, operating systems like Windows, Linux, and macOS implement sophisticated algorithms for page replacement (e.g., Least Recently Used - LRU), which significantly impact how well these systems perform under various conditions


53003230100

Disha parekh


Comments ()


Sign in

Read Next

Latest Email Marketing Techniques

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

Is Brushing After Eating Damaging Your Teeth? (Fact or Myth)

Blog banner

Socket Programming in Java

Blog banner

Financial Fraud Detection

Blog banner

Philadelphia Experiment : Was it real?

Blog banner

ProofHub

Blog banner

How Does Preschool Help Children Become Better Decision Makers?

Blog banner

Not anti-social, but pro-solitude

Blog banner

JIRA SOFTWARE

Blog banner

Perfect Moments to Wear a Rich Patola Design Outfit

Blog banner

Rapido

Blog banner

Data Security must be your Priority!

Blog banner

The application udemy

Blog banner

Direct Memory Access

Blog banner

Explaining Buffer Overflow with Example

Blog banner

MEMORY MANAGEMENT FILE

Blog banner

Self-love: Being the reason of your own smile

Blog banner

The Lunchbox That Came Back Untouched — How to Handle a Fussy Eater at Preschool Age

Blog banner

Student Grade Calculator in LISP

Blog banner

Vaping vs. Chewing Gum: The Hidden ‘Stress Fix’ Destroying Sydney’s Teeth

Blog banner

Amazon

Blog banner

Is Pursuing a Dance Career in India Worth it?

Blog banner

Automating OSINT tasks for efficient Cyber Forensics Investigations

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

Emerging threats in cyber Forensics

Blog banner

Population

Blog banner

Outlook mail

Blog banner

Data Science & AI

Blog banner

The Bold Digital Marketing Moves That Made Durex India’s Second-Largest Condom Brand

Blog banner

Deadlock

Blog banner

INDIAN CHEAPEST COSMETICS BRAND

Blog banner

Why Social Search Is Becoming the New Discovery Channel for Brands?

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

PHONE TECHNOLOGY

Blog banner

Men’s Mental Health: Breaking the Silence and Building Emotional Well-being

Blog banner

MUTUAL EXCLUSION

Blog banner

How Cyber Forensics help prevent Crimes

Blog banner

Dr. Venkadavarahan

Blog banner

Deadlock

Blog banner

Why Meal Maharaj Prioritises Seasonal Vegetables in Every Meal Box

Blog banner

Multiple processor scheduling

Blog banner