wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory Management

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

Install Ubuntu Easily

Blog banner

Deadlock in operating system

Blog banner

The most common internet security threats

Blog banner

Process in OS

Blog banner

Getting into Anime

Blog banner

Life of a 2020-2021 student

Blog banner

Software Piracy & Online Data Protection in Digital World

Blog banner

Business-to-Business

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

Threats To Computer System

Blog banner

Indian Culture and Tradition

Blog banner

Modern Operating Systems

Blog banner

NodeJs

Blog banner

Wiretapping

Blog banner

The Art Of Getting What You Want In Life....

Blog banner

Game Theory in Blockchain

Blog banner

Interesting fact about kangaroo.

Blog banner

Cache Memory

Blog banner

Place to visit in pune

Blog banner

Why Mumbai Professionals Are Switching Back to Home-Style Tiffin Meals

Blog banner

TECHNOLOGY : BOON OR CURSE ?

Blog banner

Why Soft Skills Matter as Much as Grades?

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

Starvation

Blog banner

Music is life

Blog banner

BEAUTY IS IN THE EYE OF THE BEHOLDER

Blog banner

How Schools Can Reduce Exam Stress in Students?

Blog banner

MACHINE LEARNING

Blog banner

PPC Advertising and its Impressive Benefits

Blog banner

IT RISK

Blog banner

Hey Aryan here

Blog banner

Benefits and drawback of web security.

Blog banner

Understanding the 4 Types of Learning Methods in Early Childhood

Blog banner

Emerging threats in cyber Forensics

Blog banner

MEMORY MANAGEMENT (techniques)

Blog banner

Never give up

Blog banner

Message Passing in OS

Blog banner

Different types of e-commerce platforms or advantages and disadvantages

Blog banner

GraphX:- A graph processing tool

Blog banner

Short-Form Video Marketing: Why It's Dominating the Internet

Blog banner

Google classroom

Blog banner

Blog name

Blog banner