wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory Management in Operating System

profile
Rishi Chauhan
Jul 04, 2024
0 Likes
0 Discussions
69 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

Blog on health and fitness

Blog banner

How chatGPT Is Changing SEO: What Every Business Needs to Know in 2026

Blog banner

Hot Mango Pickle (Methiyu)

Blog banner

Discover The Top 3 Places To Stay in London

Blog banner

How Cyber Forensics use in AI

Blog banner

How can denial-of-service(Dos) attacks be prevented?

Blog banner

CyberSecurity Color Wheel

Blog banner

Virtual memory

Blog banner

virtual machines and virtualization

Blog banner

I/O Buffering

Blog banner

Unlocking the Secrets: Basic Operations of Computer Forensic Laboratories

Blog banner

What is Vishing?

Blog banner

Geographic Information Systems(By aditi Unnikrishnan)

Blog banner

Note on Process, Process creation and Process termination

Blog banner

Modern Operating System

Blog banner

Uniprocessor Scheduling

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 1

Blog banner

Odoo

Blog banner

Starvation

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

Software Piracy & Online Data Protection in Digital World

Blog banner

SEIZING DIGITL EVIDENCE AT THE SCENE

Blog banner

Skills An Ethical Hacker Must Have

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

child Labour

Blog banner

Fitness

Blog banner

My favourite food

Blog banner

Race Condition

Blog banner

APACHE KAFKA

Blog banner

I/O Management and Disk Scheduling

Blog banner

Healthy Indian Dinner Ideas for Better Digestion and Sleep

Blog banner

ASANA- A Management System.

Blog banner

Multiprocessor and Multicore Organization

Blog banner

SMARTSHEET

Blog banner

Introduction to Solidity Programming for Blockchain Development

Blog banner

How Harshad Valia International School is nurturing India’s Young Minds?

Blog banner

VIRTUAL MACHINE

Blog banner

Define Instagram.

Blog banner

Interesting fact about kangaroo.

Blog banner

Men’s Mental Health: Breaking the Silence and Building Emotional Well-being

Blog banner

GOOGLE

Blog banner

5 Things I As A Dentist Would Never Do (And What You Can Learn From It)

Blog banner