Interprocess Communication (IPC) and Pipes

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/14

flashcard set

Earn XP

Description and Tags

Vocabulary and system call definitions related to Interprocess Communication (IPC) using pipes, file descriptor manipulation, and OS kernel basics.

Last updated 12:08 AM on 8/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

15 Terms

1
New cards

Pipe

A simple, synchronized way of passing information between processes, acting as a special file/buffer that stores data in a FIFO (sequential) manner.

2
New cards

Unnamed Pipes

Pipes not associated with any file that can only be used with related processes (e.g., parent and child) and support unidirectional communication via the pipe() system call.

3
New cards

Named Pipes (FIFOs)

Pipes associated with a file in the directory that support bidirectional communication between unrelated processes, created using mknod() or mkfifo().

4
New cards

pipe(int fd[2])

A system call that creates an unnamed pipe and returns two file descriptors where fd[0] is for reading and fd[1] is for writing.

5
New cards

Atomicity

A condition where a computer operation (typically for data sizes of 40964096 ext{ bytes} or less in pipes) is guaranteed to be isolated from other concurrent operations.

6
New cards

SIGPIPE

A signal generated and sent to a process when it attempts to write to a pipe whose read end has been closed, signifying a broken pipe.

7
New cards

EPIPE

The error number (errno) set when a process attempts to write to a pipe that is not open for reading by any process.

8
New cards

dup(int oldfd)

A system call that creates a copy of the oldfd file descriptor using the lowest unused file descriptor number.

9
New cards

dup2(int oldfd, int newfd)

A system call that atomically makes newfd a copy of oldfd, closing newfd first if necessary, leaving no time lapse between actions.

10
New cards

fileno(FILE *fp)

A library function used to find the integer file descriptor associated with a specific stream pointer.

11
New cards

Standard Input (STDIN)

The standard file descriptor represented by the integer 00.

12
New cards

Standard Output (STDOUT)

The standard file descriptor represented by the integer 11.

13
New cards

Standard Error (STDERR)

The standard file descriptor represented by the integer 22.

14
New cards

Kernel

The heart of the operating system and moderator between applications and computer resources, providing functional interfaces called system calls.

15
New cards

Application Programming Interface (API)

A collection of system calls used to request machine resources, communicate between running programs, or start new programs.