Famous Pipes and nameless pipes

Source: Internet
Author: User
Tags echo command

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.