Linux Process Communication

Source: Internet
Author: User

Reference: http://www.cnblogs.com/xuechao/archive/2011/12/05/2277180.html

 
Table 1. inter-process communication in UNIX
name description range purpose
file read and write data in a typical UNIX file. Any number of processes can interoperate. Local share a large dataset
MPs queue use a dedicated file descriptor to transmit data between two processes. Communication is only performed between the parent process and the child process. Local simple data sharing, such as producer and consumer
Named Pipe exchange data between processes through a dedicated file descriptor. Communication can be performed between any two peer processes on the same host. Local producer and consumer or command-control, such as MySQL and its command line query tool
signal interrupt notification application Program . Local unable to transmit data in the signal, so the signal is mainly used for process management
shared memory Read and Write Data sharing information in the same memory segment. Local any type of collaboration is especially suitable for scenarios requiring security
socket after the special setting process is completed, data is transmitted using normal input/output operations. local or remote FTP, ssh, Apache Web server, and other network services

As mentioned above, each technology meets different needs. Assuming that the collaboration between multiple processes is generally quite complex, the advantages and disadvantages of each method are as follows:

End

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.