Skip to content
Advertisement

Tag: low-latency

What is the correct way of doing Java IPC through /dev/shm (with the lowest possible latency)

I’m trying to code an IPC solution through /dev/shm. @SK-logic gave me some pointers in the comments here: Chronicle: How to optimize memory-mapped files for low-latency? My doubt is: Should I use a MappedByteBuffer or just a plain FileChannel? With a MappedByteBuffer I can use sun.misc.Unsafe and have direct access to memory. That’s fantastic because Unsafe gives me methods like

Advertisement