Frequently Asked Question on Logical and Physical Address
How does the operating system map logical addresses to physical addresses?
The process requires physical memory to run because the logical address is a virtual address. The Physical Address is never utilised by the User. The Memory Management Unit (MMU) maps the logical address that the user programme creates to the physical address.
What is paging?
The process of retrieving processes in the form of pages from the secondary storage into the main memory is known as paging.
Can two processes have the same logical address?
Yes two process can have same logical address.
Why do we need logical address?
The CPU uses logical address as a reference to get to the real physical memory location.
Logical and Physical Address in Operating System
A logical address is generated by the CPU while a program is running. The logical address is a virtual address as it does not exist physically, therefore, it is also known as a Virtual Address. The physical address describes the precise position of necessary data in a memory. Before they are used, the MMU must map the logical address to the physical address. In operating systems, logical and physical addresses are used to manage and access memory. Here is an overview of each in detail.