by L. Spiro » Sun Dec 19, 2010 7:58 am
When using memory-mapped files, when you access the RAM that has been mapped, the access operation (read or write) is redirected to the hard drive, specifically to the file that has been mapped.
Reading from a mapped virtual address in RAM means you are actually reading from your hard drive. Modifying that RAM will modify the file on your hard drive.
Because of this unique association between RAM and your hard drive, there are many restrictions on how memory-mapping can work. For example, page alignments etc.
L. Spiro
Our songs remind you of songs you’ve never heard.