I'm currently using shared memory for IPC between Java and C++ apps, but looking for a more convenient alternative.
Can someone advise a better method with same performance and speed?
Thanks!
It depends on how you plan to have your apps interact. In the POSIX environment, you have pipes, shared memory, sockets, semaphores and message queues. See this question: Comparing unix linux IPC for more information.
What is the interaction model for your processes (i.e. client/server, producer-consumer, etc)?
From personal experience, I would suggest your best bet would be pipes (since they are just files to read and write bytes) or sockets (since both languages support them).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With