memory - Virtual vs Physical Address -
i little unsure physical , virtual address concepts. here have understood:
the virtual address of instructions in compiled (exe) application file fixed , when application begins executed, these fixed virtual addresses dynamically mapped physical addresses in memory , corresponding page table entry updated.
can approve whether right or not?
thanks in advance
the virtual address layer of abstraction on top of physical addresses. physical address maps specific line in ram chip. each process has own virtual address space, however. operating system , hardware translate virtual addresses physical ones @ load/store-time.
the same virtual address in 2 different processes translated 2 different physical memory locations. example, write 2 different programs both loaded main somewhere near 0x400000.
even though 64bit virtual address space large , contain code , data of executing programs, can not find code and/or data of process within virtual address space unless mapped operating system multiple processes.
one example shared libraries. loaded memory, , operating system maps physical memory reside in virtual address space of multiple processes. counter-example ipc shared memory (http://en.wikipedia.org/wiki/shared_memory).
the page table mentioned mechanism operating system uses map virtual memory physical memory.
Comments
Post a Comment