Linux interprocess Communication-Overview

Source: Internet
Author: User
Tags posix semaphore
Inter-process communication has the following purposes:

1, data transmission, a process needs to send its data to another process, the amount of data sent between a byte to a few m;
2, sharing data, multiple processes want to manipulate the sharing of data, a process of data modification, other processes should immediately see;
3, notify the event, a process needs to send a message to another or a set of processes, notify them that something has happened;
4. Share resources and share the same resources among multiple processes.
In order to do this, the kernel is required to provide a lock and synchronization mechanism;
5, Process control, some processes want to fully control the execution of another process (such as the debug process), at this time the control process would like to be able to intercept the other process of all the sink and exception, and be able to know its state changes in time.

The two Linux interprocess communication evolved from the following parts:

Early UNIX interprocess communication: Includes pipeline, FIFO, signal.
System V-based interprocess communication: Includes system V Message Queuing, System V Semaphore (Semaphore), System V shared memory.
Based on the socket inter-process communication.
POSIX-based interprocess communication: includes POSIX Message Queuing, POSIX semaphore, and POSIX shared memory.

Linux interprocess Communication-Overview

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.