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 how you plan to have your apps interract. In the posix environment you have pipes, shared memory, sockets, semaphores and message queues. See this question: Comparing unix lixux IPC for more information.
What is the interaction model for your processess (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).