Quote:
Originally Posted by SaintDanBert
I've been writing C on various platforms for many years. While that does not make me either an expert or all-knowing, I am not aware of any full duplex IPC* implementations. Remember that "full duplex" means that both ends of the connection are writing at the same time.
...
|
If you have a single CPU/core system, simultaneous writing is physically impossible - the CPU is shared by the OS between the applications, so in any case just one application writes (and reads for that matter) at a time.
Still, the two applications may have two buffers in shared memory:
application1 writes to buffer1, application2 reads from buffer1;
application2 writes to buffer2, application1 reads from buffer2.
For that matter, the buffers may be not only explicit buffers in shared memory, but also named pipes:
man 3 mkfifo
man 1 mkfifo
.