U 4 Topic 12 Virtual Memory
U 4 Topic 12 Virtual Memory
Virtual memory can give programmers the deception that they have a
very high memory although the computer has a small main memory. It
creates the function of programming easier because the programmer no
longer requires to worry about the multiple physical memory available.
Paging
Paging is a technique of memory management where small fixed-length
pages are allocated instead of a single large variable-length contiguous
block in the case of the dynamic allocation technique. In a paged system,
each process is divided into several fixed-size ‘chunks’ called pages,
typically 4k bytes in length. The memory space is also divided into blocks
of the equal size known as frames.
Advantages of Paging
Disadvantage of Paging
Unlike pages, segments can vary in size. This requires the MMU to
manage segmented memory somewhat differently than it would manage
paged memory. A segmented MMU contains a segment table to maintain
track of the segments resident in memory.