← BYTES
Unix IPC·Starter·Ref: 15.1.14
What is the difference between an 'ephemeral' and a 'persistent' IPC object, using an anonymous pipe versus a named pipe (FIFO) as examples?
Have a question about this video? Mention reference 15.1.14 when you contact us.
a.There is no meaningful difference between the two
b.Ephemeral objects can hold more data than persistent ones
c.An anonymous pipe (ephemeral) only exists in kernel memory for as long as some process holds an open file descriptor to it, and vanishes once the last one closes; a named pipe (persistent, in the sense that its filesystem entry survives) keeps its path in the filesystem even when no process currently has it open, so a later process can still find and open it
d.Persistent IPC objects are always slower than ephemeral ones
An anonymous pipe has no name at all -- it exists purely as kernel state referenced by file descriptors, and once every descriptor referencing it is closed, the kernel reclaims it entirely. A FIFO's path, by contrast, stays in the filesystem (created via mkfifo) independent of whether any process currently has it open, so unrelated processes can rendezvous on it at different times -- though the actual data buffered inside it is still transient, not written to disk.
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#BYTES15114#UnixIPC