0% found this document useful (0 votes)
9 views

OS 22bcs114

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

OS 22bcs114

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

MEMORY

MANAGEMENT

DHIVYASREE R
22BCS114
||- BSc CS”B”
MEMORY MANAGEMENT

• The term memory can be defined as a collection of data in a specific format.


• It is used to store instructions and process data.
• The memory comprises a large array or group of words or bytes, each with
its own location. The primary purpose of a computer system is to execute
programs
• These programs, along with the information they access, should be in the
main memory during execution.
• The CPU fetches instructions from memory according to the value of the
program counter.
09/29/2023
What is Main Memory?

• The main memory is central to the operation of a Modern Computer.


• Main Memory is a large array of words or bytes, ranging in size from
hundreds of thousands to billions.
• Main memory is a repository of rapidly available information shared by the
CPU and I/O devices
• Main memory is the place where programs and information are kept when
the processor is effectively utilizing them.

09/29/2023
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.
09/29/2023
Why Memory Management is 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 of process.

09/29/2023
Static and Dynamic Linking

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.
09/29/2023
Swapping

• Swapping is a process of swapping a process


temporarily into a secondary memory from
the main memory, which is fast compared to
secondary memory. A swapping allows more
processes to be run and can be fit into
memory at one time.

09/29/2023
Advantages of Memory Management
It is a simple management approach

Disadvantages of Memory Management


It does not support multiprogramming
Memory is wasted

09/29/2023
Thank you

09/29/2023 9

You might also like