In a multiple process application where input and output is written and read using pipes, the data reads and writes are synchronized by a command pipe as a "wait queue". A single byte is sent in a (command) pipe and reading it notifies to start reading the next data.
What is the best practice and recommendation to synchronize the data reads and writes?
Should I be using UNIX domain sockets instead of pipes? Is it possible that some byte writes or reads are discarded?
Linux TCP connections have been like that: It was possible to read the length of the message and a complete message after the length. If the data was read three times, the data was not anymore available in a third read. Why?
With best
escape
What is the best practice and recommendation to synchronize the data reads and writes?
Should I be using UNIX domain sockets instead of pipes? Is it possible that some byte writes or reads are discarded?
Linux TCP connections have been like that: It was possible to read the length of the message and a complete message after the length. If the data was read three times, the data was not anymore available in a third read. Why?
With best
escape