Specifies access capabilities and restrictions for a memory-mapped file or view.
指定记忆体对应档或检视的存取能力和限制。
Memory-mapped files are an operating system feature that links a block of memory to a file.
内存映射文件是把一块内存连接到一个文件的操作系统特性。
Specifies access rights to a memory-mapped file that is not associated with a file on disk.
指定记忆体对应档的存取权限,这个档案不会与磁碟上的档案相关联。
As the name implies, a memory-mapped file maps a file-like construct to an address in memory.
顾名思义,一个内存映射文件将一个类似文件的结构映射到内存的地址中。
Represents the permissions that can be granted for file access and operations on memory-mapped files.
表示允许对记忆体对应档进行档案存取及作业的可授与权限。
Creates or opens a memory-mapped file that has the specified capacity and access type in system memory.
在系统内存中创建或打开一个内存映射文件。
After reading this article, you should understand NIO, from basic get and put operations to reading a memory-mapped file.
在阅读完本文之后,您应该了解了NIO从基本的get和put操作到读取内存映射文件方面的知识。
If two applications open the same memory-mapped file, changes made by one application will be immediately visible to the other application.
如果两个应用程序打开了同一个内存映射文件,那么某个应用程序做出的改变会立即反映给另外一个应用程序。
You can use the stream returned by this method for sequential access to a memory-mapped file, such as for inter-process communications.
可使用此方法返回的流顺序访问内存映射文件,如如进程间通信。
If we explore the construction of the memory mapped file we can see that there is no stream, we just name the resource.
如果我们想要探究内存映射文件结构的话,不需要构造一个流,只要找到该资源的名字即可。
Finally, another interesting area is the creation of multiple map views, these can work on the same memory mapped file accessing different areas of the files.
最后,让我们来看一下另外一个有意思的领域:创建多个映射视图。它们同时工作访问同一个内存映射文件的不同区域。
The access to the file USES the same syntax as the previous example, remember that if you close the memory mapped file this will be non accessible, this issue catches many developer.
如何访问文件就跟前述的示例一样了。千万记住,如果你关闭了内存映射文件,那么它就不能访问了。
This will create the memory mapped file but to start using it we will need a map view.
这样,我们就创建了一个内存映射文件。
Now if we want to read from it, the other process needs also to create a memory mapped file, we can use the other static initialize that opens an existing one or creates one if it does not exist.
其它进程如何读取该内存映射文件的内容呢。 一样,我们先创建一个内存映射文件。
Now, there is a small drawback with this approach and is related to the size of the memory mapped file.
但是这种方法有个小小的缺点,这和内存映射文件的大小有关。如果事先不知道大小的话,为了以防万一,你可能会构造一个超级大的文件。
With the stream in place, we can now create the memory mapped file. Let's see an example.
创建合适的流之后,现在就可以创建内存映射文件了。
So, in the above example, there are 16529 non-computational file pages mapped into memory.
因此,在上面的示例中,一共有16529个非计算性的文件分页被映射到了内存中。
Regions in a process's virtual address space can be mapped to physical memory, to a file, or to any other addressable storage.
进程的虚拟地址空间中的区域可被映射到物理内存、文件或任何其他可寻址存储。
Here I am using two different instances of same application to read write data from memory mapped file.
在这里我用两个相同的应用程序的不同实例来读写数据从内存映射文件。
Performance counters use a memory mapped file, or Shared memory, to publish performance data.
性能计数器使用内存映射文件或共享内存发布性能数据。
The entity of the database adopts the map-called method in which the file system object can be mapped into the virtual memory directly and distributed in the improved ORB architecture.
数据库实体采用磁盘文件映射的内存管理机制,以改进ORB方式进行网络分布;
The entity of the database adopts the map-called method in which the file system object can be mapped into the virtual memory directly and distributed in the improved ORB architecture.
数据库实体采用磁盘文件映射的内存管理机制,以改进ORB方式进行网络分布;
应用推荐