Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 C/C++ 应用程序,它在 Unix 的共享内存中写入数据。现在我想通过使用 Java 的程序读取共享内存数据。
程序应该读取共享内存数据。有可能吗?
如果可能的话,需要一个小的实现。
看看这个codeproject 项目(对于 Windows):
使用内存映射文件和 JNI 在 Java 和 C++ 程序之间进行通信
或者,这个库:
CLIPC 是一个开源 Java 库,它为开发人员提供了 Java 发行版中可能缺少或难以使用的进程间通信 (IPC) 功能。