当前位置:网站首页>Communication mode between processes
Communication mode between processes
2022-06-26 03:38:00 【Singing folk songs on the grassland】
The Conduit : It is a half duplex mode , Data flows in one direction , Can only be used between related processes . It is kernel based , You can use it as a kernel buffer . Four copies are required to exchange data with the kernel in user space , User space —> kernel , kernel —> Memory , Memory —> kernel , kernel —> User space , Why copy to the kernel here ? Because the data is executed in memory . The data in the pipeline can only be read 1 Time , After reading, the buffer does not exist , It can only carry unformatted byte streams .
name pipes : Similar to pipes , But it allows unrelated processes to access ( All processes can access ), The name of the named pipe corresponds to the disk inode .
Message queue : Message linked list , Is a series of message linked lists stored in the kernel , Data exchange also needs to be done 4 Second copy . Its advantage is that you can specify a specific message type for each message , The receiver may not get the information in the order of the queue .
Shared memory : Map a memory block that can be accessed by other processes , Memory sharing , Created by a process , Multiple process access . It only needs to be copied three times to transfer data , That's user space —> Memory —> User space .
Semaphore : Control the access of multiple processes to shared resources , It can be used to synchronize processes or threads .
The signal : It's a complicated way of communication , Notify the receiving process that an event has occurred .
Socket Socket: Socket Socket Is the cornerstone of communication , It is based on TCP/IP
Basic operation unit of network communication of protocol , It is an abstract representation of the endpoint in the process of network communication , Contains five types of information for network communication : Connection use protocol 、 Local IP Address 、 Protocol port of local process 、 long-range IP Address 、 The protocol port of the remote process .
边栏推荐
- General operations of asynctask
- Review of the paper: unmixing based soft color segmentation for image manipulation
- 丝网印刷的种类及其应用方法
- Deletelater Usage Summary in QT
- XGBoost, lightGBM, CatBoost——尝试站在巨人的肩膀上
- 微信小程序开发准备工作
- gstreamer分配器与pool的那些事
- Is Guoxin golden sun reliable? Is it safe to open a securities account?
- Classic model - Nin & googlenet
- 点击事件
猜你喜欢
随机推荐
Click event
分割、柱子、list
The golang regular regexp package uses -06- other usages (special character conversion, finding the regular common prefix, switching greedy mode, querying the number of regular groups, querying the na
【论文笔记】Learning to Grasp with Primitive Shaped Object Policies
Is it safe to open an account in flush online? How to open a brokerage account online
Types and application methods of screen printing
[hash table] improved, zipper hash structure - directly use two indexes to search, instead of hashing and% every time
HL7Exception: Can‘t XML-encode a GenericMessage. Message must have a recognized struct
渐变
丝网印刷的种类及其应用方法
MySQL stored procedure
Graphics card, GPU, CPU, CUDA, video memory, rtx/gtx and viewing mode
gstreamer分配器与pool的那些事
Problems encountered in project deployment - production environment
Tupu software is the digital twin of offshore wind power, striving to be the first
Deletelater Usage Summary in QT
Good news | congratulations on the addition of 5 new committers in Apache linkage (incubating) community
Is it safe for individuals to buy stocks with flush software? How to buy stocks
Cloud Computing Foundation -0
How to prepare for a moving wedding