flatbuffers in windows/linux pure c programming used as shared memory

181 views
Skip to first unread message

Y. Zh

unread,
Jan 3, 2022, 5:52:12 PM1/3/22
to FlatBuffers
Hi, just new to flatbuffers.

Just want to clarify that flatbuffers can be shared by different running processes as shared memory in Linux?

In Linux, we can use shmget/shmat for shared memory among the processes.

Seems to me that the flatbuffers just like data on the wire for communication btw different pcs.

Please advise. Thank you.

mikkelfj

unread,
Jan 4, 2022, 2:28:42 PM1/4/22
to FlatBuffers
Yes, I use that extensively. Not between processes but to load data from disk, but it is the same mechanism.
The key points are write once, read many, and relative addressing within the format.

Mikkel

Austin Schuh

unread,
Jan 4, 2022, 3:55:49 PM1/4/22
to mikkelfj, FlatBuffers
We do it in C++ with shared memory extensively, but it should work in
C just as well. shmget should work.

(I really need to write some better README's, but
https://github.com/frc971/971-Robot-Code is a pub-sub framework for
hard realtime systems on Linux which uses flatbuffers and shared
memory)

Austin
> --
> You received this message because you are subscribed to the Google Groups "FlatBuffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to flatbuffers...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/flatbuffers/ff75a186-b5dd-42ce-bcf4-5c97f7d8f9f8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages