当前位置:网站首页>pipeline communication
pipeline communication
2022-04-22 04:23:00 【It's never too old to learn】
Before understanding the pipeline , At least we need to understand the concept of process .
The pipeline is a way for inter process communication . Say first conclusion :
The so-called pipeline , It refers to a device used to connect a read process and a write process to realize the communication between them Shared files .
We need to understand the following concepts
① Shared memory
There is a shared space that can be accessed directly between the communication processes , Here's the picture , in other words , Both processes on both sides of the communication can access this space

② The messaging
We are talking about message passing based on indirect communication ( mail ), That is, the sending process sends the message to an intermediate entity , The receiving process then obtains information from the intermediate entity .
Pipeline communication
Understand the above two basic concepts , Let's talk about pipeline communication . In fact, the so-called pipeline communication is the combination of the above two principles , With Linux Take pipeline as an example
We know ,Linux Everything below is a document , therefore In essence, pipeline is also a kind of file , But it's different , It's like a fixed size buffer .
The process of pipeline communication is : The writer process writes the message to the pipeline , The reading process is reading the message , Complete communication .
I said before. , Since the pipe is of fixed size , Then there is a time when it is full or empty , When the pipe becomes full , The write process will be blocked and can no longer write , When the pipe is empty , The read process cannot read any more ;
Also note ,① Reading data from the pipeline is a one-time operation , Once the data is read , Was abandoned by the pipeline , Release space .
② Pipes can only be used Half duplex communication , That is, only one-way transmission at a certain time , To realize the process interaction between the two sides , We need to define two pipelines .
版权声明
本文为[It's never too old to learn]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210957005982.html
边栏推荐
- LeetCode 63. 不同路径 II
- L1-048 matrix a multiplied by B (15 points)
- When calling a function, what about passing parameters~
- Use the nohup command to mount the program and execute it in the background
- Websocket learning
- L3-022 地铁一日游 (30 分)【floyd+dfs】
- 04-Functions
- Your mind will change your behavior, and your behavior will change your situation
- 手机软件(App)测试主要有哪些方面?
- L1-053 electronic (10 points)
猜你喜欢

06-Datetimes

Zuo Chengyun - Dachang question brushing class - the minimum number of exchanges of one character on the left and another character on the right

Jupiter notebook modifying the default opening path

光标——迭代器模式

Why can sqlmap run the issue table but not the fields

Cursor iterator mode

均线双边对锁策略原理

【机器学习】长短时记忆网络(LSTM)

How to check whether the version of oraclejdk is charged on the official website

02-SparkSQL
随机推荐
OpenSCA版本升级 | OpenSCA v1.0.4版本发布
Jeesite export Excel
【近日力扣】斐波那契数列+用两个栈实现队列+从尾到头打印链表
L1-053 electronic (10 points)
Sequence traversal of binary tree
Teach you to develop an image compression tool on the cloud
Introduction to Intel edge software center
Final of the 16th programming competition of Beijing Normal University - reproduction competition & supplementary questions
Redis 的过期数据会被立马删除么?
PHP excel import time format conversion
L1-049 ladder race seat allocation (20 points)
Sumo course - public transport course
LeetCode 63. 不同路径 II
手机软件(App)测试主要有哪些方面?
The United States raised interest rates and devalued the RMB, but such products ushered in a honeymoon period
DOM事件流和事件委托
05-Aggregation
Shell programming
光标——迭代器模式
LeetCode_ Rectangle_ Difficulties_ 391. Perfect rectangle