Inter-process communication

Inter-process communication

In computing, Inter-process communication (IPC) is a set of methods for the exchange of data among multiple threads in one or more processes. Processes may be running on one or more computers connected by a network. IPC methods are divided into methods for message passing, synchronization, shared memory, and remote procedure calls (RPC). The method of IPC used may vary based on the bandwidth and latency of communication between the threads, and the type of data being communicated.

There are several reasons for providing an environment that allows process cooperation:

IPC may also be referred to as inter-thread communication and inter-application communication.

The combination of IPC with the address space concept is the foundation for address space independence/isolation.[1]

Contents

Main IPC methods

Method Provided by (operating systems or other environments)
File Most operating systems
Signal Most operating systems; some systems, such as Windows, implement signals in only the C run-time library and provide no support for their use as an IPC method
Socket Most operating systems
Message queue Most operating systems
Pipe All POSIX systems, Windows
Named pipe All POSIX systems, Windows
Semaphore All POSIX systems, Windows
Shared memory All POSIX systems, Windows
Message passing
(shared nothing)
Used in MPI paradigm, Java RMI, CORBA, MSMQ, MailSlots, others
Memory-mapped file All POSIX systems, Windows; this method may carry race condition risk if a temporary file is used

Implementations

There are several APIs which may be used for IPC. A number of platform independent APIs include the following:

The following are platform or programming language specific APIs:

See also

References

  1. ^ Jochen Liedtke. On µ-Kernel Construction, Proc. 15th ACM Symposium on Operating System Principles (SOSP), December 1995

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Inter-Process Communication — Communication inter processus En informatique, les communications inter processus (Inter Process Communication ou IPC) regroupent un ensemble de mécanismes permettant à des processus concurrents (ou distants) de communiquer. Ces mécanismes… …   Wikipédia en Français

  • Distributed Inter-Process Communication — DIPC (Distributed Inter Process Communication) is a software only solution for distributed programming under Linux. DIPC consists of two parts: (1) a kernel part that traps access to UNIX System V IPC mechanisms (shared memory segments, message… …   Wikipedia

  • POSIX local inter-process communication socket — POSIX local inter process communication sockets (auch Unix Domain Socket oder IPC Socket) sind Endpunkte von bidirektionalen Kommunikationsverbindungen bei der lokalen Interprozesskommunikation (IPC) unter Unix Betriebssystemen. Die Kommunikation …   Deutsch Wikipedia

  • Inter-protocol communication — [cite web|url=http://www.ngssoftware.com/research/papers/InterProtocolCommunication.pdf|title=Inter protocol Communication|date=2006 08|] is a security vulnerability in the fundamentals of a network communication protocol. Whilst other protocols… …   Wikipedia

  • Process isolation — is a set of different hardware and software technologies[1] designed to protect each operating system process from other processes. It does so by preventing process A from writing into process B. Process isolation can be implemented by with… …   Wikipedia

  • Communication Inter-processus — En informatique, les communications inter processus (Inter Process Communication ou IPC) regroupent un ensemble de mécanismes permettant à des processus concurrents (ou distants) de communiquer. Ces mécanismes peuvent être classés en trois… …   Wikipédia en Français

  • Communication interprocessus — Communication inter processus En informatique, les communications inter processus (Inter Process Communication ou IPC) regroupent un ensemble de mécanismes permettant à des processus concurrents (ou distants) de communiquer. Ces mécanismes… …   Wikipédia en Français

  • Communication (disambiguation) — Communication or Communications may refer to: Contents 1 Topics 2 Types 3 Companies …   Wikipedia

  • Process (computing) — In computing, a process is an instance of a computer program that is being executed. It contains the program code and its current activity. Depending on the operating system (OS), a process may be made up of multiple threads of execution that… …   Wikipedia

  • Communication inter-processus — En informatique, les communications inter processus (Inter Process Communication ou IPC) regroupent un ensemble de mécanismes permettant à des processus concurrents (ou distants) de communiquer. Ces mécanismes peuvent être classés en trois… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”