In this video, we explore the fundamental concepts of Logical Address and Physical Address in computer memory management. Understand how these two types of addresses work, their differences, and how they interact in a computer system. Perfect for beginners in computer science or those looking to deepen their understanding of memory management and operating systems!
Topics Covered:
What is a Logical Address?
What is a Physical Address?
Key Differences Between Logical and Physical Addresses
Role of the Memory Management Unit (MMU)
Whether you're a student, teacher, or tech enthusiast, this video provides a clear and concise explanation of these important concepts.
Learn more about memory management by checking out our courses on [Your Website Name/Nomaneeium]!
Don't forget to Like, Subscribe, and hit the Bell icon for more educational videos!
#LogicalAddress #PhysicalAddress #MemoryManagement #ComputerScience #OperatingSystems #EducationalVideo
---------------------------------------------
#Chapter5
#MemoryManagement
#Paging
Suppose we have a process P1, which is divided into pages.
We have a problem while executing P1. CPU will call for P1 but the CPU doesn’t know that paging is done in main memory. So to remove this problem we use the concept of #Mapping.
Mapping is done with the help of #MMU ( #MemoryManagementUnit ), MMU does it by using page table, and page table contains the frame number where the process (page) is situated/ present.
Every process has its own page table. The entries in page table are equal to number of pages a particular process has.
When CPU make a call to access byte number 3 then first we will check that in which page that byte is present and then we will check that in which frame that page is present.
For example if CPU wants to access byte 3 then as we can see that byte 3 is present in page number 1 and page number 1 is placed in frame number 4, hence CPU now know that it can get byte 3 from frame number 4 of main memory (RAM).
CPU always works on logical address. Logical address consists of two things page number and page offset.
#QuestionOnLogicalAddress&PhysicalAddress
Question: We have given LAS = 4 GB, PAS = 64 MB, Page size = 4 KB, and we have to find number of process, number of frames, number of entries in page table, size if page table. (LAS = logical address space) the memory is byte addressable.
Answer: Logical address = 22 x 230 = 232
The logical address is of 32 bits.
4 KB = 22 x 210 = 212
The page size is of 12 bits and total size of page table is 32 bits
Therefore, No of pages = 232 – 212 = 220
PA = 26 x 220 = 226 bits
Size of physical address = 26 bits
We know that frame offset = page offset
Therefore, frame offset = 4 KB = 22 x 210 = 212
Number of frames = 214
Number of entries in page table = Number of pages in a process
Therefore number of entries in page table = 220
Size of page table = 220 x 14 bits (To represent
one frame 16 bits are required and there are 220 entries in page table therefore the size of page table will be 220 x 14)
#OperatingSystem #OS #asadnomanee #banglalecture #CSE
#Lecturelia #MBSTU #MBSTU_CSE
#lecturelia #banglatutorial #bangla