A pipeline is a stream parallel skeleton. It has multiple stages and a task type which defines the type of the elements (tasks) that are passed from stage to stage. Each stage runs on a separate thread and works on one task at a time.
The following example shows how a pipeline with 3 stages and task type
int can be created. The pipe is started