Provides memory allocation options for memory-mapped files.
为内存映射文件提供内存分配选项。
High performance (SendFile API support and memory-mapped files).
高性能(支持SendFileAPI和内存映射文件)。
To help improve startup time, the JVM now works with memory-mapped files.
为了帮助改善启动时间,JVM现在和内存映射文件一起工作。
Specifies access capabilities and restrictions for a memory-mapped file or view.
指定记忆体对应档或检视的存取能力和限制。
The common language runtime does not have permissions to create memory-mapped files.
公共语言运行时不具备创建内存映射文件的权限。
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.
顾名思义,一个内存映射文件将一个类似文件的结构映射到内存的地址中。
I'll discuss an eighth type, MappedByteBuffer, available for memory-mapped files, later in this article.
在本文后面,我将讨论第8种类型MappedByteBuffer,它用于内存映射文件。
Represents the permissions that can be granted for file access and operations on memory-mapped files.
表示允许对记忆体对应档进行档案存取及作业的可授与权限。
When working with very large files, native developers turn to a technique known as Memory-Mapped files.
在处理巨型文件时,真正的开发人员会转而使用一种技术,名为内存映射文件。
After reading this article, you should understand NIO, from basic get and put operations to reading a memory-mapped file.
在阅读完本文之后,您应该了解了NIO从基本的get和put操作到读取内存映射文件方面的知识。
Then, when it is time to start the JVM, instead of loading the system classes from scratch, the memory-mapped files are loaded.
这样,在启动J VM时,就不会从头开始装入系统类,而是装入内存映射文件。
When an SPU tries to read from an empty mailbox, it will stop execution until some value is written to its memory-mapped register.
当spu视图从一个空的邮箱中读取信息时,它会停止执行,直到有值写入自己的内存映射寄存器中为止。
With the next version of the BCL,.net developers will be able to use memory-mapped files directly instead of via platform invoke calls.
在BCL的下一个版本中,. NET开发人员将能够直接使用内存映射文件,而无需通过平台调用的方式。
If two applications open the same memory-mapped file, changes made by one application will be immediately visible to the other application.
如果两个应用程序打开了同一个内存映射文件,那么某个应用程序做出的改变会立即反映给另外一个应用程序。
The ppe does this through memory-mapped register access from kernel mode, while the SPE writes to its DMA channels from code running on the SPU.
PPE可以通过在内核模式中使用内存映射寄存器来发起dma传输,而SPE则可以使用在SPU上运行的代码来写入dma通道。
When the ppe wants to access the mailbox, it needs to have access to the memory-mapped register space, which is normally only available to kernel space.
当PPE希望访问邮箱时,它需要能够访问内存映射的寄存器空间,后者通常只对于内核空间来说是可用的。
Many concepts and technologies had to come together to make the GUI possible: the mouse, memory-mapped video, powerful processors, and pop-up Windows.
许多概念和技术的同时出现使得图形用户界面成为可能,如鼠标、内存映射视频、功能强大的处理器,以及弹出窗口。
If we explore the construction of the memory mapped file we can see that there is no stream, we just name the resource.
如果我们想要探究内存映射文件结构的话,不需要构造一个流,只要找到该资源的名字即可。
Remember the system break, the location that is the edge of mapped memory for the process?
还记得系统中断点吗?该位置是进程映射的内存边界。
As mentioned above, the edge of mapped memory — last valid address — is often known as the system break or the current break.
如前所述,被映射的内存的边界(最后一个有效地址)常被称为系统中断点或者当前中断点。
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.
最后,让我们来看一下另外一个有意思的领域:创建多个映射视图。它们同时工作访问同一个内存映射文件的不同区域。
When an application references a page that is not mapped into real memory, the system generates a page fault.
如果应用程序引用了某个分页,而该分页并没有映射到实际内存中,那么系统将产生一个缺页。
The physical memory that is mapped for the guest operating system is actually virtual memory mapped into the process.
映射给客户操作系统的物理内存实际上是映射给这个进程的虚拟内存。
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.
但是这种方法有个小小的缺点,这和内存映射文件的大小有关。如果事先不知道大小的话,为了以防万一,你可能会构造一个超级大的文件。
So, in the above example, there are 188426 working storage pages mapped into memory.
因此,在上面的示例中,一共有188426个工作存储分页映射到内存中。
应用推荐