What Is Interprocess Communication?

team bbl


Interprocess communication allows processes to synchronize with each other and exchange data. In general, System V (SysV) IPC facilities provide three types of resources:

  • Semaphores. Allow processes to synchronize with other and also prevent collisions when multiple processes are sharing resources.

  • Message queues. Asynchronously pass small data, such as messages, between processes.

  • Shared memory segments. Provide a fast way for processes to share relatively large amounts of data by sharing a common segment of memory among multiple processes.

In addition to these resources, IPC pipes and FIFOs are among the most commonly used IPC facilities in UNIX-based systems:

  • Pipes are unidirectional, first-in/first-out data channels that pass unstructured data streams between related processes.

  • FIFOs (a.k.a. named pipes) are pipes that have a persistent name associated with them.

The next section looks at interprocess communication resources and the command that returns information about those resources.

    team bbl



    Performance Tuning for Linux Servers
    Performance Tuning for Linux Servers
    ISBN: 0137136285
    EAN: 2147483647
    Year: 2006
    Pages: 254

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net