質問

Is there any efficient way to let C programs talk to Java programs on Windows, Linux and Mac OS X? I tried a simple TCP/IP-Server, but it causes a lot of CPU load.

Isn't there a simpler way?

役に立ちましたか?

解決

For cross-platform communication you can use sockets if the parties run on different computers, or, for local communication you can use memory-mapped files.

Properly written socket server should not cause too much CPU load, but it's easy to implement it wrong.

Our company offers MsgConnect product (free with source version is available), which hides complexities of building the transport and offers a simple SendMessage-like interface for inter-process communication on various platforms.

他のヒント

The gold standard for these things is ZeroMQ.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top