better Java IPC@Linux tactic: (a) java.nio File API on /dev/shm or (b) JNI to shmctl(2)? -


we want write java 7 program boot (via 2 cmd line invokes) 2 separate jvm process instances. want these 2 processes communicate each other using native linux kernel shared-memory ipc resources.

does have insight of these 2 approaches may have more merit?

  1. use java.nio.* api on /dev/shm
  2. use jni bridge c++ code makes native shmctl() system calls

?

i vote "nio , /dev/shm".

but before making final decisions, should consider other options, including clip:

sockets, message queues , named pipes other ipc methods wouldn't dismiss out-of-hand. imho...


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -