OnDoc
| sign
in
up
~
pub
|
pdf
txt
html
toc
url
|
<<
>>
1
~
14
15
16
17
18
19
20
~
35
Table of Contents
Chapter 14: Interprocess Communication
Plans
Introduction
Pipes
Pipes (cont.)
Understanding Pipes
Understanding Pipes (cont.)
Using Pipes
Example
Example: Piping output to child process’ input
Using Pipes for synchronization and communication
popen()
popen() and pclose()
Assignment
FIFOs
FIFO details
Example: Using FIFOs to Duplicate Output Streams
Example: Client-Server Communication Using FIFOs
System V IPC
Rendezvousing with IPC Structures
IPC Permissions
Issues w/System V IPC
Message Queues
msqid_ds
Limits
msgget()
msgctl()
msgsnd()
msgrcv()
Semaphores
semid_ds
semget()
semctl()
semop()
Shared Memory