wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory Management

profile
dhruvi acharya
Jul 04, 2024
0 Likes
0 Discussions
12 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

This Windows 11 encryption bug may cause data damage

Blog banner

Creating Digitally Signed Document

Blog banner

Uber

Blog banner

Privacy LAWs in IT

Blog banner

Memory Management Techniques

Blog banner

Starvation

Blog banner

1 Dentist in Maroubra, Sydney and her 10 obsessions

Blog banner

Modern operating system

Blog banner

Message Passing in OS

Blog banner

Blog name

Blog banner

Building a Better You: Fitness Tips and Inspiration.

Blog banner

?What Children Learn Between Activities: The Hidden Learning Moments in a Preschool Day

Blog banner

Security issues

Blog banner

Deadlock and Starvation

Blog banner

IP Address

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

Deadlock

Blog banner

A Heartfelt Act of Kindness

Blog banner

(Input/Output) in os

Blog banner

Lemon and Chilli Pickle (Limbu Mirchi Achar)

Blog banner

Memory Management

Blog banner

Guidelines for a low sodium diet.

Blog banner

Security in Cloud Computing

Blog banner

Four Stalls Every Vegetarian Needs To Eat At Outside Vile Parle Station

Blog banner

The Golden Temple , Amritsar

Blog banner

From Model Mistakes to Metrics

Blog banner

From Websites To Super Apps For Digital User Experience

Blog banner

How to Avoid being a Victim of Cybercrime

Blog banner

Exploring Florida Beyond the Obvious Tourist Trails

Blog banner

DISK SCHEDULING

Blog banner

Buffering

Blog banner

Flipkart

Blog banner

A Review on Data Acquisition in Cyber Forensics

Blog banner

Photorec - media recovery tool

Blog banner

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

Blog banner

Data Warehouse Bus Matrix

Blog banner

Travel: Everything Everywhere!

Blog banner

Lucidchart

Blog banner

Uniprocessor Scheduling

Blog banner

Virtual memory in Operating System

Blog banner

Question

Blog banner

BrainGate Technology

Blog banner