Named Pipeとは?
named pipeはFIFOとも呼ばれ、関連している必要のないプロセス間で一方向のチャネルとして機能するfilesystemオブジェクトです。あるプロセスが書き込み用に開き、別のプロセスが読み取り用に開くと、kernelがバイトを順序どおりにバッファします。anonymous pipeと異なりpathを持つため、アクセス権のあるどのプロセスからも接続できます。
なぜ重要か
named pipeを使うと、別々のプログラムが一時ファイルやsocketなしで互いにデータをストリームできます。あるツールを別のツールへつなぐshell scriptのためのシンプルな構成要素です。
関連ガイド
What Is an Anonymous Pipe?An anonymous pipe is an unnamed in-memory channel that connects the output of one process to the input of ano…
What Is a Unix Domain Socket?A Unix domain socket is an endpoint for fast communication between processes on the same machine, addressed b…
What Is Blocking IO?Blocking IO pauses the calling thread until an input or output operation finishes, so the thread cannot do ot…