Linux inter-process communication IPC Lecture

A, IPC concept

IPC (Interprosses communication), for the Chinese inter-process communication

We know that the process has its own separate process space in memory, you can not direct data exchange between the various processes

(If the process is not very familiar with the concept of a small partner, I can see the previous content )

Therefore, we need mechanisms for inter-process communication, enabling them to exchange data

 

Currently, there are seven types of communication mechanisms:

1, file operations (a write process, a process of reading, generally not used)

2, the pipe (named pipe conduit unknown)

3, signal

4, shared memory  (standard IPC)   

5, message queues (standard IPC)

6, semaphore sets (standard IPC)

7, local socket (socket) (I have in the Linux Network Programming detailed explanation)

 

Published 52 original articles · won praise 40 · views 30000 +

Guess you like

Origin blog.csdn.net/weixin_40519315/article/details/104210771