UNIT 4 - MEMORY MANAGEMENT Lecture 1 and 2
UNIT 4 - MEMORY MANAGEMENT Lecture 1 and 2
Noida
Memory Management
UNIT 4
ACSE0403A/AMICSE0403A
Unit: 4
Operating System
Ram Kumar Sharma
Course outcome: After completion of this course students will be able to:
CO5 Understand and analyze the I/O management and File K2, K4
systems
ACSE0403A .1 3 3 2 2 1 2 - 2 3 2 2 3
ACSE0403A .2 3 3 3 2 2 3 - 2 3 1 1 3
ACSE0403A .3 3 3 2 2 2 2 - 2 2 3 1 3
ACSE0403A .4 3 2 2 3 1 2 - 1 2 1 2 3
ACSE0403A .5 3 1 2 2 2 2 - 1 2 2 2 3
Average 3 2.4 2.2 2.2 1.6 2.2 - 1.8 2.2 1.8 1.6 3
ACSE0403A .1 2 1 2 2
ACSE0403A .2 2 2 1 2
ACSE0403A .3 2 3 3 2
ACSE0403A .4 2 2 1 2
ACSE0403A .5 2 2 2 2
Average 2 2 1.8 2
Course Objective
Course Outcome
CO-PO Mapping
AKTU Syllabus of Unit 4
Prerequisite and Recap
Introduction
Swapping
Contiguous Memory Allocation
Paging
Segmentation
Structure of the Page Table
Virtual Memory
Demand Paging
Copy-on-Write
Page Replacement
Allocation of Frames
Thrashing
Video links/Daily Quiz/Weekly Assignment/MCQ/Old Question
papers/Expected Question for University Exam/Summary/References
Prerequisite:-
Basic knowledge about the digital logic and computer organization.
Recap:-
To discussed the various approaches to manage the CPU and
deadlock problem in computer system.
Figure 2:- Hardware address protection with base and limit registers.
Reference Book :- Operating System Concepts (8th Edition) Abraham Silberschatz, Peter
Baer Galvin, and Greg Gagne Page No. -317
May 19, 2024 Ram Kumar Sharma ACSE0403A OS Unit 4 34
Address Binding
Address binding is the process of mapping from one address space to
another address space.
Or
The Association of program instruction and data to the actual physical
memory locations is called the Address Binding.
An address binding can be done in three different ways :
Compile time: If memory location known a priori, absolute code can be
generated; must recompile code if starting location changes
Load time: Must generate relocatable code if memory location is not
known at compile time
Execution time: Binding delayed until run time if the process can be
moved during its execution from one memory segment to another
Need hardware support for address maps (e.g., base and limit
registers).
Prerequisite
Basic knowledge about the primary and secondary memory in
computer system .
Recap
To understood of various ways of organizing memory hardware like
allocation, deallocation and protection of memory space of multiple
processes..
Advantages :-
1. Easy to implement
2. Little Operating System overhead.
Disadvantages :-
1. Suffer Internal Fragmentation:- If the size of the process is lesser then the
total size of the partition then some size of the partition get wasted and remain
unused. This is wastage of the memory and called internal fragmentation.
Advantages:-
Disadvantages:-
Solution:-
• Compaction is a process in which the free space is collected in a
large memory chunk to make some space available for
processes. Compaction also known as defragmentation .
Question 2:- Let us consider six memory partitions of size 200 KB, 400 KB,
600 KB, 500 KB, 300 KB and 250 KB. ). If sequence of process requests for
blocks of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. then
which of the following algorithm makes the efficient use of memory?