Inter Process Communication Objects - pipe()


  • In unix system, pipe is known as an inter process communication mechanism.
  • A process can write data to pipe, and that data can be read by another process.
  • In pipe IPC, the data is handled in fifo i.e first in first out order.
  • Pipe does not have any name, it is only created for one use and both ends must be inherited from the single process which created the pipe.
  • Since it is a IPC object, it is used to communicate between two process i.e parent and child.
  • Pipe is created using pipe function (pipe()). Pipe also creates description pair which can be denoted as fd[0], fd[1]. Primarily fd[0] for reading and fd[1] for writing.
  • As pipe sets up, the data can be passed using read and write functions.
Inter Process Communication Objects - pipe() Inter Process Communication Objects - pipe() Reviewed by Rakeysh Aryal on May 21, 2016 Rating: 5

No comments

Any comment will be appreciated, comment will be published according to our comment policy

Post AD

Widgets