Any concept of shared memory in Java

emkrish picture emkrish · Sep 29, 2009 · Viewed 38.1k times · Source

AFAIK, memory in Java is based on heap from which the memory is allotted to objects dynamically and there is no concept of shared memory.

If there is no concept of shared memory, then the communication between Java programs should be time consuming. In C where inter-process communication is quicker via shared memory compared to other modes of communication.

Correct me if I'm wrong. Also what is the quickest way for 2 Java progs to talk to each other.

Answer

Ashwin Jayaprakash picture Ashwin Jayaprakash · Sep 16, 2011

A few ways:

Details here and here with some performance measurements.