wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory Management

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

Hello World

Blog banner

Disk scheduling

Blog banner

What is Minting & Mining

Blog banner

I Personally

Blog banner

E-commerce

Blog banner

An Overivew Of Cache Memory

Blog banner

Why Extreme Opinions Are Rising: Psychological Insights into Society’s Divides

Blog banner

Why Dry Fruits Make the Perfect Gifting Choice for Every Occasion?

Blog banner

A little bit of salt is all the hash needs!

Blog banner

Message Passing in OS

Blog banner

Instagram Features in 2023 That Will Leave You Stunned!

Blog banner

Super Garlicky Tomato Soup with Smashed White Beans

Blog banner

Save Environment

Blog banner

Broken Authentication Attacks

Blog banner

A Traveller’s Guide to Offbeat Places in Arcadia, Florida

Blog banner

INTERNET SECURITY

Blog banner

Proof-of-Stake (PoS)

Blog banner

Components of GIS

Blog banner

What is Internet

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

LIMITED EDITION

Blog banner

DNS Cache

Blog banner

Fashion marketing in india

Blog banner

ARTICLE ON WRIKE CORPORATION

Blog banner

GEOLOGY AND GEO-TECTONIC FRAME WORK OF WESTERN BASTAR CRATON

Blog banner

Can ChatGPT Answer All My Questions About Life?

Blog banner

The Future of Web Development in 2026: Trends Every Business Must Know

Blog banner

HubSpot

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Evolution of the Microprocesor

Blog banner

ahh wait a min

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

10 Reasons why Monica and Chandler are the best couple ever.!!!

Blog banner

OS Assignment 3

Blog banner

Data Mapping

Blog banner

Deadlocks in operating system

Blog banner

File System

Blog banner

OS Assignment 3 Deadlock

Blog banner

Types of Hackers.

Blog banner

5 ways to save money on catering services in Mumbai

Blog banner

Real-Time Operating Systems (RTOS) Deep Explanation

Blog banner

Study of Sniffing Tools

Blog banner