Software/Embedded system

IPC Concept

neovaga 2022. 2. 13. 16:19
반응형

IPC (Interprocess Communication)

Processes executing concurrently in the operating system may be either independent processes or cooperating processes. 

- Independent processes: They cannot affect or be affected by the other processes executing in the system.

- Cooperating processes: They can affect or be affected by the other processes executing in the system. 

 

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

- Information sharing

- Computation speedup

- Modularity

- Convenience

- Synchronization

- Resource sharing

 

 Cooperating processes require an interprocess communication mechanism that will allow them to exchange data and information.

 There are two fundamental models of interprocess communication: 

  1. Shared Memory
  2. Message passing: A communication link must exist between them. 
    1. Indirect communication: Mailbox (A link may be associated with more than two processes.)
    2. Sync/Async communication: send/receive a message

반응형