wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory Management

profile
Vansh Dedhia
Aug 17, 2024
0 Likes
0 Discussions
104 Reads

What is Memory Management?

In a multiprogramming computer, the Operating System resides in a part of memory, and the rest is used by multiple processes. The task of subdividing the memory among different processes is called Memory Management. Memory management is a method in the operating system to manage operations between main memory and disk during process execution. The main aim of memory management is to achieve efficient utilization of memory. In Simpler words, Memory management is the process of controlling and coordinating a computer's main memory. It ensures that memory space are properly managed and allocated so the operating system (OS), applications and other running processes have the memory they need to carry out their operations. So the functions of each process will happen smoothly.


Why memory management is Required?


1.Allocate and de-allocate memory before and after process execution.

2.To keep track of used memory space by processes.

3.To minimize fragmentation issues.

4.To proper utilization of main memory.

5.To maintain data integrity while executing of process.



The memory management techniques can be classified into following:

Contiguous memory management schemes and Non-Contiguous memory management schemes, this is explained further below,


1.Contiguous Memory Management Schemes:-

Contiguous memory management is a way to allocate memory for programs in a computer.


Let's understand with an example here,

Imagine you have a big library with many books (programs) that need to be stored on shelves (memory). Contiguous memory management assigns each book in a continuous block of shelves, so all the pages (data) of a book are together in one place.


It is discussed below how it will work:

1.Fixed-size partitions: Divide the library (memory) into fixed-size sections (partitions) like small, medium, and large shelves.

2.Program allocation: When a program (book) needs memory, find a partition that fits its size and allocate it.

3.Continuous block: Assign a continuous block of shelves within the partition to the program, so all its data is stored together.


2.Non-Contiguous memory management schemes:-

Non-Contiguous memory management is a way to allocate memory for programs in a computer, where programs don't need to be stored in a single, continuous block of memory. Here's a simplified explanation:


Let's take the same example from above to understand and relate with it, Non-Contiguous memory management allows books to be stored in different sections of the library, as long as there's enough space.


Let's understand how it will works:-

1.Paging: Divide the library (memory) into small, equal-sized sections called pages.

2.Program allocation: When a program (book) needs memory, allocate pages from anywhere in the library.

3.Page table: Keep a page table (index) to track which pages belong to which program.


Comments ()


Sign in

Read Next

What is OS Fingerprinting?

Blog banner

The seven-step improvement process

Blog banner

NETWORK SECURITY RISKS

Blog banner

Evolution of the Microprocesor

Blog banner

MEMORY MANAGEMENT FILE

Blog banner

A little bit of salt is all the hash needs!

Blog banner

Memory Management

Blog banner

Open Source Project By Google

Blog banner

Mental Health at Midlife: When Life Transitions Become Emotional Turning Points

Blog banner

Disk Scheduling

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

Odoo

Blog banner

Lake Manatee State Park: A Peaceful Nature Escape Near Arcadia

Blog banner

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

Blog banner

What is Data, Information and Knowledge?

Blog banner

The role of artificial intelligence in automating digital forensic analysis.

Blog banner

The Benefits of Mixed Learning Activities for Preschoolers

Blog banner

Fossil Hunting 101 at the Peace River, Arcadia, Florida, USA

Blog banner

The 60-Minute Window: What to Do (And What NOT to Do) When You Knock Out a Tooth

Blog banner

Number Guessing game --lisp

Blog banner

IT security management

Blog banner

Microsoft Word

Blog banner

Revolutionary AI Tool: ChatGPT

Blog banner

The Role of Data Provenance and Lineage in Modern Data Science

Blog banner

?Why Social and Emotional Skills Matter More Than ABCs in Early Years?

Blog banner

GIS REMOTE SENSING

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

EID UL FITR

Blog banner

Why am I never satisfied with my Life?

Blog banner

5 Stages of Digital Marketing

Blog banner

Some facts about Technology

Blog banner

RACI model in IT services

Blog banner

Threads

Blog banner

Why Every Preschooler Learns at Their Own Pace?

Blog banner

Full Disk Encryption

Blog banner

MORDERN UNIX SYSTEM

Blog banner

Measuring IT Risk

Blog banner

Importance of education

Blog banner

Interrupts in OS

Blog banner

Raising mental health burden: A global and Indian perspective

Blog banner

Data Security must be your Priority!

Blog banner

Microsoft powerpoint presentation

Blog banner