# Mkfifo myfifo# PingEdu.cn> myfifo
Open another terminal:# Cat myfifo
See the results.
Mkfifo command
Purpose
Create a first-in-first-out (FIFO) special file.Syntax
Mkfifo [-M mode] File...Description
Based on the specified sequence, the mkfifo
Inter-process communication must pass through the channel provided by the kernel, and there must be a way to identify a channel provided by the kernel in the process. The previously mentioned anonymous channel is identified by the opened file
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
A "FIFO" is a special type of file that allows independent processes to communicate. A process opens a FIFO file for write operations, and another process reads it. The data can then be run in the same way as anonymous pipelines that are common
Use pipelines for programming in Linux
Http://www.lupaworld.com/tutorial-view-aid-10366.html
Introduction
In this article, we will learn about the GNU/Linux pipeline. Although the pipeline model is very old, it is still a very useful inter-process
Introduction
In this article, we will learn about the GNU/Linux pipeline. Although the pipeline model is very old, it is still a very useful inter-process communication mechanism. We will learn what a semi-bidirectional pipeline is and what a famous
Inter-process communication (5)
1. Preface all the examples in this article are based on the RHEL6.5 platform. The previous article introduced anonymous pipelines. Click this link.
2. A major restriction for introducing MPs queue applications is
Common Linux C functions-Signal Processing-general Linux technology-Linux programming and kernel information. For more information, see the following section. Alarm)
Related functions: signal, sleep
Header file # include
Define the function
Talk C together (90th back: C language instance -- use pipelines for inter-process communication 3)
Hello, everyone. In the previous session, we talked about the example of using pipelines for inter-process communication. This example is as follows:
Famous pipelines: FIFO
So far, we can only transmit data between two related programs, that is, programs started by a common ancestor process. This is usually not very convenient, because we want unrelated processes to exchange data.
We can use FIFO
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.