wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory Management

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

Maharashtrian culture: Tradition, Art, Food

Blog banner

ITIL Version 3 and 4 differenciation?

Blog banner

Why do you need a personalised bag tag for your kids' school bags?

Blog banner

Virtual Memory

Blog banner

File system

Blog banner

WINDOWS I/ O

Blog banner

Some web vulnerabilities

Blog banner

How Cyber Forensics help prevent Crimes

Blog banner

Cyber-crime Investigation and Future Directions

Blog banner

Classification Vs Clustring? What's the diffrence?

Blog banner

Kernel Memory Allocation In Linux.

Blog banner

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

Busted : Common Web Security Myths

Blog banner

Importance of Network Security Risk

Blog banner

Thumb Sucking: When It’s Normal and When It Becomes a Dental Problem

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

The Procedural Framework for Corporate High-Tech Investigations

Blog banner

Memory Management in Operating System

Blog banner

Security in Cloud Computing

Blog banner

Internet of Things

Blog banner

BIRYANI ! The history you never knew about

Blog banner

Beyond the Track: Why the Best Hotel in Arcadia, Florida, Completes Your IMSA Sebring Getaway

Blog banner

Supervised and Unsupervised Learning

Blog banner

What is OS and its overview

Blog banner

Cyber Crime Investigation In The Era Of Big Data

Blog banner

Simple Ways of Avoiding Basic Mistakes in Smart Phone Security

Blog banner

FOMO Fear of Missing Out: When Comparison Steals Your Peace of Mind

Blog banner

6 Digital Marketing Trends You Must Watch Out For In 2022

Blog banner

MEMORY FORENSIC ACQUISITION AND ANALYSISOF MEMORY AND ITS TOOLS COMPARISON

Blog banner

OS PROCESS DESCRIPTION AND CONTROL-SARVAGYA JALAN

Blog banner

Vaping vs. Chewing Gum: The Hidden ‘Stress Fix’ Destroying Sydney’s Teeth

Blog banner

Mumbai Metro 3

Blog banner

The Secure Software Development Life Cycle (SDLC)

Blog banner

Routers

Blog banner

Processing Crime and Incident Scenes

Blog banner

The New Rules of UI/UX Design Every Website Must Follow in 2026

Blog banner

Patola Outfits for the Modern Wardrobe: Reviving Indian Handloom in Style

Blog banner

MySQL

Blog banner

Southern Turkey Earthquake: Causes and Consequences of a Tragic Natural Disaster

Blog banner

Social engineering in cyber security

Blog banner

OS assignment 3

Blog banner

Instagram

Blog banner