Memory management: Difference between revisions

Jump to navigation Jump to search
added image to paging
[unchecked revision][unchecked revision]
No edit summary
 
(added image to paging)
Line 25:
Having an individual virtual-to-physical mapping for each address is of course ineffective. The traditional approach to virtual memory is to split up the available physical memory into chunks (pages), and to map virtual to physical addresses ''page-wise''. This task is largely handled by the [[MMU]], so the performance impact is low, and generally accepted as an appropriate price to pay for memory protection.
 
[[Image:Virtual memory.png|left|frame|paging illustrated: two process with different views of the same physical memory]]
<pre>
physical memory virtual memory (A) virtual memory (B)
+-------+ +-------+ +-------+
00x |H E L L| page table |H E L L| page table |H A V E|
01x |R L D !| for proc. A |O W O| for proc. B | L O T|
02x |O W O| 00x => 00 |R L D !| 00x => 03 |S O F|
03x |H A V E| 01x => 02 |#######| 01x => 05 | F U N|
04x | F U N| 02x => 01 |#######| 02x => 06 |#######|
05x | L O T| 03x n.a. |; - ) | 03x => 04 |; - ) |
06x |S O F| 04x n.a. +-------+ 04x => n.a. +-------+
07x |; - ) | 05x => 07 05x => 07
+-------+
 
paging illustrated: two process with different views of the
same physical memory
</pre>
 
==Virtual Memory==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu