๐ฆ Chapter 44: Pipes and FIFOs
Complete Tutorial Series โ TLPI Chapter 44 | EmbeddedPathashala
๐ 2 HTML Files
๐ป 5 Code Examples
๐ฏ 15 Interview Qs
๐ง Linux IPC
About This Chapter
Chapter 44 of The Linux Programming Interface covers Pipes and FIFOs โ the oldest and most fundamental IPC mechanism in UNIX. This tutorial series breaks the chapter into focused parts with theory, diagrams, code examples, and interview questions for each topic.
๐ Part 1 โ Pipes Overview (Section 44.1)
Understand what a pipe is, how it got its name, and all its fundamental properties.
What is a Pipe? Byte stream Unidirectional PIPE_BUF atomicity Pipe capacity (65536) F_SETPIPE_SZ FIFO vs Pipe ls | wc -l explained
๐ง Part 2 โ Creating and Using Pipes (Section 44.2)
Hands-on: creating pipes with pipe(), connecting processes with fork(), implementing shell-style piping with dup2().
pipe() syscall filedes[0] and [1] pipe() + fork() pattern Close unused ends EOF detection dup2() for redirection Two-pipe bidirectional Shell pipe simulation SIGPIPE
