Support for non persisted memorymappedfile

我的未来我决定 提交于 2019-12-12 02:07:59

问题


I want to implement memory mapped file concept as a shared memory to share data between two processes running in my windows system. One in Java and another in native (C# layer).

Both are running processes and hence i want to use non persisted mechanism for memory mapped files instead of persisted file option (because a file poses a security threat ).

Java File Channels http://docs.oracle.com/javase/6/docs/api/java/nio/channels/FileChannel.html#map(java.nio.channels.FileChannel.MapMode, long, long) has an option to map to an existing file.

C# has option to map both a persisted file and a simple alias named map for non persisted file. Please check here https://msdn.microsoft.com/en-us/library/dd997372(v=vs.110).aspx

So i am looking as how i can create a mapping for non persisted mechanism in Java.

Best Regards,

Saurav

来源:https://stackoverflow.com/questions/43190764/support-for-non-persisted-memorymappedfile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!