← BYTES
Unix IPC·Starter·Ref: 15.1.3

What is the key difference between a named pipe (FIFO) and an ordinary (anonymous) pipe?

Have a question about this video? Mention reference 15.1.3 when you contact us.

a.There is no real difference
b.Anonymous pipes can hold more data than named pipes
c.A named pipe has a path in the filesystem and can be used by any two unrelated processes that both know that path; an anonymous pipe only connects processes that already share it via a common ancestor (e.g., a parent and its child)
d.Named pipes can only be used once before being deleted automatically
An anonymous pipe (created via the `pipe()` syscall) only exists as a pair of file descriptors inherited through `fork()`, so only a process and its descendants can use it. A named pipe (`mkfifo`) has an actual filesystem path that any two processes -- even completely unrelated ones -- can open and use to communicate, as long as both know the path.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES1513#UnixIPC