IPC VS域袜子VS命名管道 [英] IPC vs domain sock vs named pipes

查看:135
本文介绍了IPC VS域袜子VS命名管道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我IPC和Unix域套接字和命名管道之间有什么不同?

Whats the different between IPC and Unix domain sockets and named pipes?

我从各种书籍模糊的定义,但不能得到清晰哪一个应该使用的地方。

I got vague definitions from various books but couldn't get clarity on which one should be used where.

推荐答案

几乎任何方式两个进程互相可以考虑IPC的沟通形式。

Just about any way two processes communicate with each other could be considered a form of IPC.

例如:


  1. 命名管道(猫file.txt的| grep的富)或命名管道

  2. Unix领域套接字

  3. TCP或UDP套接字

  4. 在Linux上
  5. 网络链路接
  6. 各种共享内存机制,如内存映射文件

  7. 高速信息传递,如 ZeroMQ

  1. Unnamed Pipes ( cat file.txt | grep foo ) or Named Pipes
  2. Unix Domain Sockets
  3. TCP or UDP sockets
  4. Netlink Sockets on Linux
  5. Various Shared Memory Mechanisms such as Memory Mapped Files
  6. High Speed Message Passing such as ZeroMQ

这篇关于IPC VS域袜子VS命名管道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆