I. Limitations of anonymous pipeline PIPE
The main limitations of MPs queue are as follows:
Only unidirectional data streams are supported;
It can only be used between unrelated processes;
No name;
The buffer of the MPs queue is limited
Introduction: Pipelines are the oldest IPC method on Unix systems, and pipelines provide an elegant solution: given the two processes that run different programs, how can the output of one process in the shell be used as input to another process?
Linux inter-process communication (IPC) Programming Practice (2) FIFO naming Pipeline
In the previous article, we explained how to use anonymous pipelines to transmit data between processes, and also saw a defect in this method, these processes are
A major restriction of an unnamed pipeline application is that it has no name, so it can only be used for Kinship-related inter-process communication. After proposed by a famous Pipeline (named pipe or FIFO, this restriction is overcome. FIFO is
in the previous article , we explain how to use anonymous pipelines to pass data between processes, and also see a flaw in the way that these processes are initiated by a common ancestor process, which makes it inconvenient to exchange data between
Linux inter-process communication-famous pipelines (FIFO) and linuxfifoFamous pipe (FIFO)
Named Pipes are also called FIFO files, which are special files. Since all linux objects can be regarded as files, the use of Named Pipes becomes very
1. Named Pipe (FIFO)
The pipeline is described in the previous article "one of Linux processes communication (IPC)-Pipeline". However, a major defect in pipeline application is that there is no name, so it can only be used for communication between
Open rules for famous Pipelines
A famous Pipeline has one more open operation than the pipeline: open.
FIFO open rules:
If a read-only FIFO is enabled for the current open operation, if a corresponding process has enabled this FIFO for writing, the
Overview of Named PipesNameless pipes, because there is no name, can only be used for inter-relationship interprocess communication (many other details. See the Nameless pipe). in order to overcome this shortcoming. A named pipe (FIFO) is proposed.
Linux system programming-inter-process communication: Named Pipe (FIFO), linuxfifoOverview of named MPs queue
Unknown pipeline, because there is no name, can only be used for inter-process communication of kinship (for more details, see "unknown
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.