Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to communicate between two JVMs using memory-mapped files?

I was wondering how you would synchronize on a memory-mapped file to safely use it as a pipe between two JVMs. Has anyone done that before with success?

like image 905
JohnPristine Avatar asked Nov 17 '12 19:11

JohnPristine


1 Answers

I have a library which does this but it doesn't use synchronization. It writes once to memory rather than reusing the memory which simplifies the memory model. Java Chronicle

like image 146
Peter Lawrey Avatar answered Sep 27 '22 22:09

Peter Lawrey