Discover linux named pipe non blocking, include the articles, news, trends, analysis and practical advice about linux named pipe non blocking on alibabacloud.com
1, pipeline overview and related API application1.1 Key concepts related to pipingThe pipeline is one of the original UNIX IPC forms supported by Linux and has the following features:
The pipe is half-duplex, the data can only flow in one
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
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
Reprint: http://blog.ddup.us/?p=285
There are several ways to communicate interprocess communication in Linux: Pipe, FIFO, shared memory, semaphores, message queues, shared files, and so on. Pipe and FIFO are the most widely used, the difference
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
1. Blocking means that the process waits for an event to occur and waits without execution, and resumes execution if the awaited event occurs. Calling the system blocking function may cause the process to block into sleep.2. Blocking IO read reading
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
In the previous article--linux interprocess communication-Using anonymous pipelines, we saw how anonymous pipelines can be used to pass data between processes, as well as a flaw in the way that these processes are initiated by a common ancestor
Linux inter-process communication-Using named pipesReprint: http://blog.csdn.net/ljianhui/article/details/10202699in the previous article--linux interprocess communication-Using anonymous pipelines, we saw how anonymous pipelines can be used to pass
Pipes and famous pipes
In this series, the author outlines several key means of communication between Linux processes. Among them, pipelines and well-known pipelines are one of the earliest interprocess communication mechanisms, pipelines can be
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.