My goal is to send / share data between several programs . These are the options I was thinking about:
- I could use the file , but prefer to use my RAM, because it works faster.
- I could use a socket , but this would require a lot of address information that is not needed for local files. And the ports too.
- I could ask others about an effective way to do this.
I chose the last one.
So, what would be an effective way to send data from one program to another? For example, he can use the buffer and write bytes to it and wait until the receiver marks the first byte as “read” (basically nothing but the byte written), and then write again, but where would I put the buffer and how would I make it available for both programs? Or maybe something else might work?
I am using linux.
source
share