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
98 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

CONCURRENCY: MUTUAL EXCLUSION AND SYNCHRONIZATION-het karia

Blog banner

INTRANET

Blog banner

Uniprocessor Scheduling

Blog banner

The Power of Cyber Forensic in Solving Crimes

Blog banner

Understanding E-mail Servers

Blog banner

Goa Trip With Friends

Blog banner

RAID

Blog banner

USES OF WHATSAPP

Blog banner

Is Pursuing a Dance Career in India Worth it?

Blog banner

Juveniles, Internet and Computer Crime

Blog banner

What is time ? The term which has astonished Scientists

Blog banner

"Geographic Information Systems (GIS) and its Applications in Urban Planning"

Blog banner

How to Encrypt and Decrypt Using GNU PGP

Blog banner

Types of OS

Blog banner

Coping with Diagnosis Shock

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

EFT

Blog banner

BrainGate Technology

Blog banner

Mobile Survey

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

PHONE TECHNOLOGY

Blog banner

E-learning in today's world

Blog banner

Sage business cloud accounting

Blog banner

Microsoft Word

Blog banner

Emotional Intelligence in Children: Why It Is as Important as Academics

Blog banner

DISK SCHEDULING

Blog banner

Security Breaches in Stock market trading

Blog banner

Why Summer Break Is Important for Emotional and Cognitive Growth?

Blog banner

BITCOIN WALLET

Blog banner

What is a geographic information system (GIS)?

Blog banner

What is metaverse?

Blog banner

Smart Eating Habits for Office Professionals to Stay Healthy

Blog banner

Ethical Hacking

Blog banner

Smartsheet

Blog banner

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

Blog banner

What is Data, Information and Knowledge?

Blog banner

Virtual Machine

Blog banner

Sniffing: A Cyber Security Threat

Blog banner

Explain Kernel in OS

Blog banner

Unlocking the Secrets: Basic Operations of Computer Forensic Laboratories

Blog banner

OS PROCESS DESCRIPTION AND CONTROL-SARVAGYA JALAN

Blog banner

ROLE OF THE COMPUTER FORENSICS TOOLS AND TECHNIQUES

Blog banner