|
|
|
|
|
<br>A memory-mapped file contains the contents of a file in virtual memory. This mapping between a file and memory house allows an application, together with a number of processes, to switch the file by studying and writing directly to the memory. You need to use managed code to entry memory-mapped information in the identical means that native Windows capabilities entry memory-mapped recordsdata, as described in Managing Memory-Mapped Files. Persisted files are memory-mapped recordsdata that are related to a supply file on a disk. When the last process has finished working with the file, the info is saved to the supply file on the disk. These memory-mapped recordsdata are suitable for working with extraordinarily massive supply information. Non-persisted information are memory-mapped recordsdata that aren't related to a file on a disk. When the final process has finished working with the file, the data is lost and the file is reclaimed by garbage assortment. These files are appropriate for creating shared memory for inter-course of communications (IPC).<br> |