wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory management

profile
Riya Singh
Aug 15, 2024
0 Likes
0 Discussions
112 Reads

The term memory can be defined as a collection of data in a specific format .The CPU fetches instructions from memory according to the value of the program counter and executes them .

To achieve a degree of multiprogramming and proper utilisation of memory, memory management is important.

Main memory is a repository of rapidly available information shared by the CPU and I/O devices. Main memory is also known as RAM (Random Access Memory).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.  

Why is Memory Management Required?

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

To keep track of used memory space by processes.

To minimize fragmentation issues.

To proper utilization of main memory.

To maintain data integrity while executing the process.

Static and Dynamic Loading

Loading a process into the main memory is done by a loader. There are two different types of loading :


Static Loading: Static Loading is basically loading the entire program into a fixed address. It requires more memory space.

Dynamic Loading: The entire program and all data of a process must be in physical memory for the process to execute. So, the size of a process is limited to the size of

physical memory.

To gain proper memory utilization, dynamic loading is used. In

dynamic loading

, a routine is not loaded until it is called. All routines are residing on disk in a

relocatable

load format. One of the advantages of dynamic loading is that the unused

routine

is never loaded. This loading is useful when a large amount of code is needed to handle it efficiently.

Static and Dynamic Linking

To perform a linking task a linker is used. A linker is a program that takes one or more object files generated by a compiler and combines them into a single executable file. 


Static Linking: In static linking, the linker combines all necessary program modules into a single executable program. So there is no runtime dependency. Some operating systems support only static linking, in which system language libraries are treated like any other object module.

Dynamic Linking: The basic concept of dynamic linking is similar to dynamic loading. In

dynamic linking, “Stub” is included for each appropriate library routine reference. A stub is a small piece of code. When the stub is executed, it checks whether the needed routine is already in memory or not. If not available then the program loads the routine into memory.



Comments ()


Sign in

Read Next

Process Description

Blog banner

Introduction to Solidity Programming for Blockchain Development

Blog banner

BITCOIN WALLET

Blog banner

social media issue

Blog banner

Models of Information Security.

Blog banner

SQL Injection

Blog banner

What is Anxiety? How to manage Anxiety?

Blog banner

Cyber Security in Data Breaching

Blog banner

10 Unknown facts about India's Independence

Blog banner

Cyber Forensic in the Banking sector

Blog banner

Deadlock

Blog banner

Data Lake

Blog banner

Why Seasonal Summer Foods Are Best for Your Health?

Blog banner

Navigation With Indian Constellation(NavIC) by ISRO in Geographic Information Systems

Blog banner

Memory management

Blog banner

Direct Memory Access

Blog banner

INTERNET

Blog banner

Data Security and Data Privacy in Data Science

Blog banner

Why is ITSM important in IT organization?

Blog banner

"Mahakali cave"

Blog banner

Deadlock and Starvation

Blog banner

Difference Between Classification And Clustering

Blog banner

Koinex is shutting down and here is how you can withdraw...

Blog banner

R Programming

Blog banner

Google classroom

Blog banner

Linux -V Server Virtual Machine

Blog banner

Emotional Intelligence in Children: Why It Is as Important as Academics

Blog banner

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

Blog banner

Should you be using a mouthwash? Know from the experts

Blog banner

objectives and function of operating system

Blog banner

Virtual memory in windows

Blog banner

ADIDAS

Blog banner

Sessions In OS.

Blog banner

Network Footprinting in Cybersecurity

Blog banner

Uniprocessor scheduling

Blog banner

Crypto tax evasion

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

Importance of modern technology era

Blog banner

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

Blog banner

Remote Work in 2026

Blog banner

RACI model in IT services

Blog banner

The Difference Between Plaque and Tartar Explained Simply

Blog banner