Add 'To Work with a Memory-mapped File'

master
Emma Garris 1 month ago
parent
commit
54543676ca
  1. 3
      To-Work-with-a-Memory-mapped-File.md

3
To-Work-with-a-Memory-mapped-File.md

@ -0,0 +1,3 @@
<br>A memory-mapped file contains the contents of a file in digital memory. This mapping between a file and memory space enables an utility, including multiple processes, to change the file by reading and writing directly to the memory. You should utilize managed code to access memory-mapped recordsdata in the identical way that native Home windows capabilities access memory-mapped recordsdata, as described in Managing Memory-Mapped Recordsdata. Persisted recordsdata are memory-mapped files which might be associated with a source file on a disk. When the final process has finished working with the file, the information is saved to the source file on the disk. These memory-mapped recordsdata are appropriate for working with extraordinarily giant source recordsdata. Non-persisted information are memory-mapped files that are not associated with a file on a disk. When the last process has finished working with the file, the info is lost and the file is reclaimed by rubbish collection. These information are appropriate for creating shared memory for inter-process communications (IPC).<br>
<br>Memory-mapped information may be shared throughout multiple processes. Processes can map to the identical memory-mapped file through the use of a common identify that's assigned by the method that created the file. To work with a [memory-mapped](https://www.buzzfeed.com/search?q=memory-mapped) file, you have to create a view of the entire memory-mapped file or part of it. You may also create a number of views to the identical part of the memory-mapped file, thereby creating concurrent memory. For two views to remain concurrent, they need to be created from the identical memory-mapped file. A number of views might also be essential if the file is better than the scale of the application's logical memory house accessible for memory mapping (2 GB on a 32-bit pc). There are two varieties of views: stream entry view and random entry view. Use stream access views for sequential entry to a file
Loading…
Cancel
Save