What is the difference between logical and physical memory spaces?

The difference between logical and physical memory spaces is given below

Logical address – An address generated by the CPU is commonly known as Logical address. When we give the problem to the computer then our computer pass the problem to the processor through logical address, which we are not seen this address called logical address. And the set of all logical addresses generated by a program is known as logical address Space.

Physical address: – when our processor create process and solve our problem then we store data in secondary memory through address called physical address. In simple word the address seen by the memory unit that is one loaded into the memory address register of the memory is commonly refereed as the Physical Address. And the set of all physical addresses corresponding to these logical addresses is physical address space.

The compile time and load time address binding generates the identical logical and physical addresses. However, the execution time address binding scheme results in differing logical and physical addresses. The user program never sees the real physical address space, it always deals with the Logical addresses. As we have two different type of addresses Logical address in the range (0 to max) and Physical addresses in the range(R to R+max) where R is the value of relocation register. The user generates only logical addresses and thinks that the process runs in location to 0 to max. As it is clear from the above text that user program supplies only logical addresses, these logical addresses must be mapped to physical address before they are used.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.