Bidirectional message passing between 2 processes within an OS

ぃ、小莉子 提交于 2019-12-25 03:21:40

问题


PIPES are unidirectional and can be synchronous or asynchronous in communication.

But how to create a Bidirectional Named pipe with one endpoint on one process and the other endpoint on other process both processes sharing the same memory and is present within the same operating system and communicating asynchronously.

Is there a way to do it ?


回答1:


On Linux you must use two pipes if you want full duplex communication. Solaris however has full duplex pipes.

It sounds like a Unix-domain socket would satisfy your requirements. Such a socket is named, full duplex and asynchronous.



来源:https://stackoverflow.com/questions/29296007/bidirectional-message-passing-between-2-processes-within-an-os

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!