MemoryMappedBuffer flushing

Alan Bateman Alan.Bateman at oracle.com
Tue Sep 23 11:50:40 UTC 2014


On 23/09/2014 11:02, Bobrowski, Maciej wrote:
>
> Hi All,
>
> Given that I am using a memory-mapped file, with an underlying O/S 
> page sie of e.g. 4KB, are there any guarantees about when the flush 
> (page synch) will be performed with respect to writes?
>
>
No, you'll need to use the force method to ensure that the underlying 
pages are written back to the file system.

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20140923/f9135104/attachment-0001.html>


More information about the nio-dev mailing list