A method used to establish IPC between processes of the parent and child.
- Children share the same pipe. Allows for child-parent process communication

- Pipes are unidirectional. You can read and write from the same pipe
Pipe Communication Types
Self Communication
- Create a pipe
- Send a message to the pipe
- Retrieve message from pipe, write it to stdout
- Send another message to pipe
- Retrieve message from pipe and write to stdout
Parent Child Communication
- Create a pipe
- Create a child process
- Parent process writes to pipe
- Child process retrieves message from pipe and writes to stdout
Two-way Communication
- Create two pipes:
- Pipe1: parent to write and child to read
- Pip2: child to write and parent to read
- Create child process
- Close unwanted ends not needed for process communication
- Close unwanted ends in parent process: read end of pipe1, write end of pipe2
- Close unwanted ends in child process: write end of pipe1, read end of pipe2
- Perform communication as required