I'm trying to do some inter program data exchange and I decided to play a bit with named pipes. I have a very basic reader and a very basic writer, taken from the example answer here.
My first problem is that I cannot use two time
write(...)
unless I let the program sleep. Is there a way around that? Having it callsleep(1)
after every entry will explode the process time.I would also like to have more than one process write into the same fifo. Is that possible? My attempts returned quite a few issues...
Finally is there a way to have a fifo carry an object instead of a string?