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

Threads

Blog banner

Why Users Leave Your Website in 5 Seconds (And How UI/UX Fixes It)

Blog banner

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

Blog banner

Famous Indian dishes that where misunderstood to be Indian

Blog banner

Corporate Discipline.

Blog banner

PPC Advertising and its Impressive Benefits

Blog banner

Embedded Operating System

Blog banner

"Games and the future"

Blog banner

Why Extreme Opinions Are Rising: Psychological Insights into Society’s Divides

Blog banner

The Peephole

Blog banner

LISP - Library Management System

Blog banner

Linux -V Server Virtual Machine

Blog banner

Processes: Process Description and Control.

Blog banner

The Role of Frontline Managers in Driving Workplace Performance and Customer Satisfaction

Blog banner

POVERTY:Causes and solutions to problems

Blog banner

Short note on expert system

Blog banner

Decoding Modern Assessment: Why We Look Beyond the Grade Sheet

Blog banner

File management

Blog banner

This too shall pass

Blog banner

INTERNET

Blog banner

Session Hijacking Techniques

Blog banner

Royal enfield

Blog banner

Telegram and it's features

Blog banner

Article on different management system

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Synchronization

Blog banner

Importance of internet

Blog banner

memory cache

Blog banner

Cache Memory

Blog banner

All you need to know about “On-page SEO”

Blog banner

Virtualisation

Blog banner

Smart Eating Habits for Office Professionals to Stay Healthy

Blog banner

Carrot Pickle With Raisins (lagan Nu Achar)

Blog banner

Beauty of indian railway

Blog banner

Save Environment

Blog banner

The Everyday Parenting Dilemma: Safety Vs Independence

Blog banner

Having passion in life

Blog banner

Animal’s have my heart

Blog banner

City of Mumbai (Bombay):

Blog banner

SQL Injection

Blog banner

Evolution of Operating System

Blog banner

Outlook mail

Blog banner