问题
I have a C++ piece of code that creates shared memory. Is it possible to write Java Code which can read the memory created by the C++ code unless using JNI. By the way I am using Windows OS.
回答1:
See MappedByteBuffer. It's the standard Java class to read & write shared memory. I use it a lot. Yes, you can use this to communicate with any program written in any language which uses shared memory, and it's all very standard Java, no JNI.
回答2:
Yes, you can use code project :code project
来源:https://stackoverflow.com/questions/15130283/java-and-c-shared-memory