Pipes, FIFOs and message queues
Follow a reader that waits for ever for end of file, see why one read can cut a record in two, and watch a full pipe or queue make a sender wait. IPC and device I/O · Operating systems.
A reader has taken every byte the writer sent, the writer has closed its end, and the next read still never returns. Who is still holding the pipe open?
What you will learn
- Trace which write ends keep a pipe from reporting end of file
- Explain why a read can cut a record and how a length prefix fixes it
- Predict when a writer waits on a full pipe and what one receive returns from a queue
Lesson outline
- A reader that never sees end of file
- Why one read can cut a record
- Backpressure on a full pipe
- Whole records in a queue
15 minutes · 4 scenes · 0 predict checks · 11 quiz questions
The full lesson is available with Premium.