February 2020
Beginner to intermediate
616 pages
15h 16m
English
A pipe is used for connecting two processes. The output from one process can be sent as an input to another process. The flow is unidirectional, that is, one process can write to the pipe and another process can read from the pipe. Writing and reading are done in an area of main memory, which is also known as a virtual file. Pipes have a First in First out (FIFO) or a queue structure, that is, what is written first will be read first.
Here is its syntax:
int pipe(int arr[2]);
Here, arr[0] is the file descriptor for the read end of the pipe, and arr[1] is the file descriptor for the ...
Read now
Unlock full access