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?
I. Some simple understandings: We know that the pipeline has no signs, so we can only communicate in the same process Group. it is not possible between processes produced by different ancestors !! Therefore, the FIFO mechanism can only be
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
nameless pipes (pipe)Pipelines can be used for communication between affinity processes, and well-known pipelines overcome the limitations of pipe without name, so that, in addition to having the functions of a pipeline, it allows communication
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
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.
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.