Quantcast
Channel: Computer Memory and Hard Drives
Viewing all articles
Browse latest Browse all 585

Virtual Memory Behavior When Some Memory Is "deleted"

$
0
0
i'm implementing virtual memory page model in c++. my virtual memory is larger than the physical memory. i've done the allocation part but i can't picture how to do the freeing part. what does actually happen when, for example 20 bytes are deleted (pages are 4 kbyte)? i know that in page table entries there is a present flag for page but here i still have the page, and only 20 bytes of it are deleted? and how do page table entries change? thanks in advance

Viewing all articles
Browse latest Browse all 585

Trending Articles