IPC via named pipe: Difference between revisions

Content added Content deleted
(draft task)
 
m (omissions)
Line 8: Line 8:
* Your program may assume it's the sole reader on "in" and the sole writer on "out".
* Your program may assume it's the sole reader on "in" and the sole writer on "out".
* Read/write operation on pipes are generally blocking. Make your program responsive to both pipes, so that it won't block trying to read the "in" pipe while leaving another process hanging on the other end of "out" pipe indefinitely -- or vice versa. You probably need to either poll the pipes or use multi-threading.
* Read/write operation on pipes are generally blocking. Make your program responsive to both pipes, so that it won't block trying to read the "in" pipe while leaving another process hanging on the other end of "out" pipe indefinitely -- or vice versa. You probably need to either poll the pipes or use multi-threading.

{{omit from|GUISS}}
{{omit from|ZX Spectrum Basic}}