Pipeline:
1. Pipelines are the oldest form of inter-process communication between UNIX systems, essentially a virtual file that maintains a message queue in the kernel.
2. Historically, pipelines usually refer to half-duplex pipes, allowing only one-way flow of data. Most modern systems offer full duplex piping, and data flows in two directions along the pipeline.
Known pipeline (FIFO):
1. Concept: Pipeline communication based on a well-known file (pipe file)
2. Order Form:
# Mkfifo FIFO Create pipeline
# echo Hello > FIFO read in Hello to pipeline
# Cat FIFO view content in pipeline
Demonstrate:
Attention:
1. Execute the echo command the first terminal is blocked on write, only after using the second terminal cat, unblocked
2. The pipeline itself is not a memory, you can use the Ls-l command to view: The first P indicates piple
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Famous Pipes and nameless pipes