Any concept of shared memory in Java

后端 未结 10 539
猫巷女王i
猫巷女王i 2020-11-29 05:33

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 s

10条回答
  •  野性不改
    2020-11-29 05:46

    Similar to Peter Lawrey's Java Chronicle, you can try Jocket.

    It also uses a MappedByteBuffer but does not persist any data and is meant to be used as a drop-in replacement to Socket / ServerSocket.

    Roundtrip latency for a 1kB ping-pong is around a half-microsecond.

提交回复
热议问题