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:
- Shared Memory
- Message passing: A communication link must exist between them.
- Indirect communication: Mailbox (A link may be associated with more than two processes.)
- Sync/Async communication: send/receive a message
반응형
'Software > Embedded system' 카테고리의 다른 글
fmt 와 Variadic function 정리 (0) | 2022.07.10 |
---|---|
Sizeof()for struct and pointer with pack() 64bit system (0) | 2022.06.04 |
C 프로그램 빌드 과정 정리 (0) | 2021.08.09 |
exec() System call concept (0) | 2021.06.27 |
fork() system call concept (0) | 2021.06.27 |