java与c应用,Java和C应用程序之间的IPC
I have 2 applications, one written in C and the other in Java, that suppose to run on the same machine. What is the best way to implement an IPC between them?
best meaning portability, minimal user awareness (firewall popups...), etc.
解決方案
I would use Sockets over loop back to start with. This allows you to send text or binary data and cleanly handle when one process starts or dies. The latency is about 20-50 micro-seconds depending on what you are doing with the data and how much you send.
Sockets are platform independent and can be use in pure Java. There are millions of examples and tutorials available for Java.
總結(jié)
以上是生活随笔為你收集整理的java与c应用,Java和C应用程序之间的IPC的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java rest 调用_Java调用R
- 下一篇: h5 rtmp推荐控件_H5播放Rtmp