wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory Management in Operating System

profile
Rishi Chauhan
Jul 04, 2024
0 Likes
0 Discussions
61 Reads

Memory management in an Operating System (OS) plays very important role in allocating memory, for using memory very efficiently or for protection of primary memory (i.e. RAM) while program is being executed. It involves managing both primary memory (RAM) and secondary memory (Solid State Drive and Hard Disk Drive). 

Importance of Memory Management :

  1. 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.
  2. 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 (i.e. Hard disk drive) for extending RAM. It does it by swapping temporarily  less used portions of programs to virtual memory freeing up the space of RAM for active processes. This allows the system to run multiple programs more effectively by exceeding the physical memory RAM capacity.
  3. Memory Sharing : Memory management enables sharing of memory between different processors giving them access to modify the same memory. This can help in preventing data redundancy (i.e. multiple copy of same data).It enhance the performance of applications that rely heavily on data exchange or coordinated access to common resources.

Memory Management Techniques : 

  1. Contiguous Memory Allocation : In contiguous memory allocation to process is 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 memroy stored is 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.
  2. Non Contiguous Memory Allocation : In non contiguous memory allocation to process is in different locations i.e. memory is not next to it like in contiguous memory allocation i.e. blocks can be placed anywhere in physical memory. As memory is non contiguous memory utilization is efficient and it is also flexible as memroy is 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. But there are some limitations too like it increases the complexity and also calcualting the address is difficult as compared to contiguous memory allocation.

Comments ()


Sign in

Read Next

OS PROCESS DESCRIPTION AND CONTROL-SARVAGYA JALAN

Blog banner

Memory Management

Blog banner

DNS Cache

Blog banner

DISK SCHEDULING

Blog banner

EVOLUTION OF MICROPROCESSOR

Blog banner

DATA WRANGLING

Blog banner

Security in Cloud Computing

Blog banner

History of Money

Blog banner

Honeypot in cyber security

Blog banner

Deadlock and starvation

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

5 Powerful Mindset Shifts To Make 2026 Your Breakthrough Year

Blog banner

"Can Lisp do Machine Learning?"

Blog banner

Proof-of-Stake (PoS)

Blog banner

Decoding the Weave — How to Identify Original Patola Art on a Fabric

Blog banner

URL vs Domain

Blog banner

Guidelines for a low sodium diet.

Blog banner

WINDOWS I/ O

Blog banner

Virtual memory

Blog banner

The Role of Cyber Forensics in Criminology

Blog banner

Linux Memory Management

Blog banner

Deadlock and Starvation

Blog banner

Swiggi

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Deadlock

Blog banner

Kernel in Operating System

Blog banner

What are Virtual Machines

Blog banner

LIMITED EDITION

Blog banner

GIS Bharat Maps

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

Software Piracy & Online Data Protection in Digital World

Blog banner

BharatPe

Blog banner

OS Evolution Achievements

Blog banner

Simple STEM Activities for Toddlers That Spark Curiosity

Blog banner

Memory input output management

Blog banner

Cyber Forensics in Healthcare: Protecting Patient Data and Preventing Breaches

Blog banner

Deadlock and Starvation

Blog banner

Understanding Endometriosis and Its Psychological Impact on Quality of Life

Blog banner

OPERATING SYSTEM OBJECTIVES AND FUNCTIONS

Blog banner

OPERATING SYSTEM

Blog banner

Search Marketing In 2026: From Keywords To Credibility And User Intent

Blog banner

Practical Implementation of Client Server model using TCP/IP.

Blog banner