wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory Management

profile
dhruvi acharya
Jul 04, 2024
0 Likes
0 Discussions
13 Reads

Memory management is an essential operating system (OS) service responsible for the efficient and secure allocation, utilization, and protection of primary memory (RAM) during program execution. It directly impacts system stability, program performance, and the ability to run multiple programs concurrently.It involves managing both primary memory (RAM) and secondary memory (SSD and hard disk).

 

Importance of Memory Management :

 

Allocating Memory : Allocating memory is important because when you install or run a program managing memory is very important. Operating System (OS) maintains track of free memory and allocates them when required. this memory allocation can be contigous (continous blocks) or non contigous (not in continous blocks seprated in memroy) both have their own advantages and disadvantages.

 

Multitasking and Virtual Memory : To enable effiicient multitasking, operating system introduces to virtual memory technique. Virtaul memroy creates an illusion of larger memory space than physically available by utilizing secondary storage (hard drive) for extending RAM. It does it by swapping temporarily less used parts of programs to virtual memory freeing up the space of RAM for current use. This allows the system to multitask more effectively by exceeding the physical memory RAM capacity.

 

Protection: The OS enforces a strict hierarchy of memory access permissions. The kernel, the core of the operating system, enjoys the highest privilege level and has unrestricted access to all memory regions. User processes, on the other hand, operate with limited privileges. They can only access memory locations explicitly allocated to them and are prohibited from modifying critical system areas. 

 

Techniques of Memory Management : 

Contiguous Memory Allocation : In contiguous memory allocation elements are allocated in continous order i.e. a single contiguous block of memory. This means all memroy is assigned to a process are in a continous range. In Programming array is a good example of this in array elements are stored in contiguous (conitnous) format. As it is contiguous it is easy to implement and calculating address is simple as compared to non contiguous. As all memory is contiguous accessing memory is fast. But as it is contiguous it is hard to allocate memory i.e. it is hard to find free conotiguous memory space. And it is also not flexible as if there is somthing stored next to that contiguous memory it will be hard to extend it.

 

Non Contiguous Memory Allocation : In non contiguous memory allocation every element is stored in different locations (memory is not next to it like in contiguous memory allocation) blocks can be placed anywhere in physical memory. As memory is non contiguous memory is efficiently utilized and is also flexible as elements are stored in different locations. Memory isolation is easier to implement as every memroy is at different locations so it will be hard to access the memory that increases the security. But there are some limitations too like it increases the complexity and also calculation of address is difficult as compared to contiguous memory allocation.


Comments ()


Sign in

Read Next

Health and fitness

Blog banner

Hacking

Blog banner

Should you be using a mouthwash? Know from the experts

Blog banner

Cycling

Blog banner

What is process

Blog banner

Uniprocessor Scheduling

Blog banner

INDIAN CHEAPEST COSMETICS BRAND

Blog banner

Zomato's Secret Digital Marketing Techniques!

Blog banner

MAHAKAL LOK UJJAIN

Blog banner

FOMO Fear of Missing Out: When Comparison Steals Your Peace of Mind

Blog banner

My First Trek - Sondai, Karjat - Shoaib Malik

Blog banner

Incorporating Automation into Digital Forensics.

Blog banner

Embaded operating system

Blog banner

Demystifying Cryptography: A Beginner's Guide

Blog banner

10 Interesting Facts about Death Note

Blog banner

Cache Memory(142)

Blog banner

Assignment 2

Blog banner

Daycare Centres Help Children Transition into Structured Learning

Blog banner

Security Issues and Countermeasures

Blog banner

WHAT IS TWITTER AND HOW DOES IT WORK

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

How Unstructured Play Helps Children Become Creative Thinkers

Blog banner

Steganography

Blog banner

E-Governance

Blog banner

Nature’s Brush on Silk: The Secret Behind Patola Colours

Blog banner

5 Common Faults In Construction Tenders

Blog banner

IT Service Continuity Management

Blog banner

Harsh Rathod

Blog banner

Fault Tolerance

Blog banner

How to Plan a Week of Healthy Meals Without Stress

Blog banner

Cache Memory

Blog banner

This Windows 11 encryption bug may cause data damage

Blog banner

Race Condition in Operating Theatre

Blog banner

Who decides your overthinking, anyway?

Blog banner

Jio .....A Revolution ?? ??

Blog banner

The Rise of Evil Twin Attacks: A New Kind Of Spoofing Cyberattack

Blog banner

Data Mapping

Blog banner

Principles of Concurrency

Blog banner

The Laws of Karma

Blog banner

Data Warehousing

Blog banner

COMFORT IS ALL ABOUT FASHION

Blog banner

Precision-Recall in Data Science

Blog banner