what is difference between physical and logical memory.
Answers
Answer:
There are three related concepts here:
1...Physical -- An actual device
2....Logical -- A translation to a physical device
3....Virtual -- A simulation of a physical device
The term "logical memory" is rarely used because we normally use the term "virtual memory" to cover both the virtual and logical translations of memory.
In an address translation, we have a page index and a byte index into that page.
The page index to the Nth path in the process could be called a logical memory. The operating system redirects the ordinal page number into some arbitrary physical address.
The reason this is rarely called logical memory is that the page made be simulated using paging, becoming a virtual address.
Address transition is a combination of logical and virtual. The normal usage is to just call the whole thing "virtual memory."
We can imagine that in the future, as memory grows, that paging will go away entirely. Instead of having virtual memory systems we will have logical memory systems
As from above question we need to understand what is Physical memory and Logical memory
Logical memory :
- It is a virtual address generate in CPU
- Set of all logical addresses generated in CPU in reference to a program is referred as Logical space
- User can view a logical addresse of a program
- User uses the logical addresse to access the physical address
Physical memory :
- It is a location in a memory unit
- User can never view physical address of a program
- User cannot directly access physical address