A named pipe is a special file which exist as a file in a file system. There are few key differences between a regular file and a named pipe.
|Named Pipes||Regular Files|
|A named pipe cannot be opened for read and write at the same time.||A regular pipe can be opened for read and write at the same time.|
|Both read and write operation on a are blocking.||Regular files are always readable and they are also always writeable.|
|It has no content on the file system that is a named pipe even with data appears to be empty.||A regular file as content on the file system.|
|Movement of file current position like seek() API is not possible for the named pipes.||Movement of file current position that is seek() API can be used with a regular file.|
Categories: Operating system (OS)
Leave a Reply