Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In software
engineering, a pipeline consists of a chain of processing elements,
arranged so that the output of each element is the input of the next.
Usually some amount of buffering is provided between consecutive
elements. The information that flows in these pipelines is often a
stream of records, bytes or bits. The concept is also called the pipes
and filters design pattern. It was named by analogy to a physical
pipeline. Pipelines are often implemented in a multitasking OS, by
launching all elements at the same time as processes, and automatically
servicing the data read requests by each process with the data written
by the upstream process. In this way, the CPU will be naturally switched
among the processes by the scheduler so as to minimize its idle time. In
other common models, elements are implemented as lightweight threads or
as coroutines to reduce the OS overhead often involved with processes.