First page Back Continue Last page Overview Graphics

Pipes

An alternative ti threads consists in running multiple independ programs, i.e. independent copies of the Python interpreter. Communication between the processes can be achieved via pipes.

The concept of pipes and pipelines was introduced by Douglas McIlroy, one of the authors of the early command shells, after he noticed that much of the time they were processing the output of one program as the input to another. Ken Thompson added the concept of pipes to the UNIX operating system in 1973. Pipelines have later been ported to other operating systems like DOS, OS/2 and Microsoft Windows as well.

A Pipe is a buffered uni- or bidrectional data stream between two processes, working as FIFO.