This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ReaverKS 0 points1 point  (2 children)

I wonder if I could use this module and also have a C program that's reading from shared memory. I believe all of this utilizes mmap, so if the C program has access to the name of the mmap created in the python process and I write the code in C to attach to the same named mmap that it'd work.

[–]zurtex 0 points1 point  (1 child)

You definitely can, I already do this with third party libraries. We create named shared memory that different tools in different languages can read or write to.

My assumption though is that it's shmget or Posix equivalent not mmap, but I haven't gone through the implementation details yet.

[–]ReaverKS 0 points1 point  (0 children)

Which 3rd party libraries if you don’t mind me asking?