I understand that a pipe is a form of IPC where a process creates a link to communicate with some other process (a child maybe), taking each one a end of the pipe. File descriptors are created for read and write and they can use it in half-duplex or full-duplex. My question is if the implementation of this schema is something like shared memory or message passing.
Asked By : Alejandro Sazo
Answered By : D.W.
Like message passing. The kernel allocates a private buffer for storing the data that has been sent and is waiting to be delivered to the recipient.
For more details, see:
http://www.slideshare.net/divyekapoor/linux-kernel-implementation-of-pipes-and-fifos
http://linux.omnipotent.net/article.php?article_id=12504&page=-1
In the future, please do more research before asking. We expect you to do some serious research before asking. The links above showed up in the first few responses to my first Google search, which is a hint that you should have done more research on your own.
Best Answer from StackOverflow
Question Source : http://cs.stackexchange.com/questions/16520
0 comments:
Post a Comment
Let us know your responses and feedback