wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory Management of Operating System(OS)

profile
E 070 MEET HIRANI
Jul 05, 2024
0 Likes
0 Discussions
97 Reads

Memory management ek important function hai jo operating system (OS) ka part hota hai. Yeh system ki RAM ko efficiently allocate aur de-allocate karta hai, ensuring ki multiple programs smoothly run kar sakein.

Example:

Suppose ek computer pe do programs run ho rahe hain: Program A aur Program B. Dono ko memory chahiye apna kaam karne ke liye.

  1. Memory Allocation:

    • Jab Program A start hota hai, OS usko required memory allocate karta hai.
    • Similarly, jab Program B start hota hai, OS usko bhi memory allocate karta hai.
  2. Paging:

    • OS memory ko fixed-size pages mein divide karta hai.
    • Agar Program A ko 3 pages chahiye aur Program B ko 2 pages, to OS in pages ko allocate karta hai aur ensures ki dono programs ke data separate rahe.
  3. Virtual Memory:

    • Assume karo ki total physical RAM khatam ho gayi hai. Ab agar Program A ko aur memory chahiye, to OS virtual memory use karega.
    • OS hard disk ka ek portion use karta hai as virtual memory. Isse Program A ko lagta hai ki uske paas aur RAM hai, lekin actually data hard disk pe store hota hai.
  4. Memory Protection:

    • Program A aur Program B ke memory areas separate hote hain. Agar Program A galti se Program B ki memory access kare, to OS usko block kar deta hai. Isse data corruption aur security issues prevent hote hain.
  5. Garbage Collection:

    • Agar Program A memory allocate karta hai lekin usko free nahi karta, to kuch programming languages automatic garbage collection karti hain. Matlab, OS unused memory ko automatically free kar deta hai, ensuring ki resources efficiently use ho.
  6. Fragmentation:

    • Example: Agar Program A terminate ho gaya aur usne kuch fragmented memory blocks chhod diye, to OS memory ko compact karta hai taaki space efficiently use ho sake. Yeh internal aur external fragmentation handle karta hai.

In summary, memory management OS ka ek vital role hai jo programs ko required memory allocate karta hai, unused memory ko free karta hai, aur ensures karta hai ki memory efficiently aur securely use ho. Isse system performance aur reliability enhance hoti hai.


Comments ()


Sign in

Read Next

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

Blog banner

Guidelines for a Low sodium Diet.

Blog banner

COMFORT IS ALL ABOUT FASHION

Blog banner

Women Empowerment

Blog banner

Banaras

Blog banner

GIS info about Bermuda Triangle

Blog banner

Race Condition

Blog banner

Scheduling

Blog banner

MySQL

Blog banner

WINDOWS I/ O

Blog banner

Beautiful and stunning natural phenomena worth to see

Blog banner

The Art of Slow Fashion: Why Patola Defines Sustainable Luxury

Blog banner

Importance of Morning Routines for Students During the Festive Season

Blog banner

PROCESS CONTROL BLOCK IN OS

Blog banner

Anomaly Detection in Behavioral Data Using Machine Learning

Blog banner

Craziness of dream 11 and how it impacts on our life

Blog banner

GIS

Blog banner

Social Engineering

Blog banner

Malware

Blog banner

Developments in Modern Operating Systems

Blog banner

Disk Management

Blog banner

What if COVID does not exist!

Blog banner

Bots and Cyber Security

Blog banner

social media issue

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

The Benefits of Practical Life Activities in Preschool

Blog banner

Uniprocessor scheduling

Blog banner

Article on Team Work

Blog banner

ADD A SPICE TO YOUR LIFE.

Blog banner

MYNTRA

Blog banner

MEMORY FORENSIC ACQUISITION AND ANALYSISOF MEMORY AND ITS TOOLS COMPARISON

Blog banner

Steps to create an Ubuntu EC2 Instance with GUI in AWS

Blog banner

Dekkers Algorithm

Blog banner

10 Interesting facts you should know!!!

Blog banner

Deadlock

Blog banner

Electronic Evidence in Cyber Forensics

Blog banner

Analysis of Digital Evidence In Identity Theft Investigations

Blog banner

Cherish the Craft — Essential Tips to Maintain Your Patola Collection

Blog banner

Process in OS

Blog banner

Modern Operating System

Blog banner

Multiprocessor and scheduling

Blog banner

Hubspot

Blog banner