For faster navigation, this Iframe is preloading the Wikiwand page for 行程間通訊.

行程間通訊

本條目存在以下問題,請協助改善本條目或在討論頁針對議題發表看法。 此條目没有列出任何参考或来源。 (2022年2月23日)維基百科所有的內容都應該可供查證。请协助補充可靠来源改善这篇条目。无法查证的內容可能會因為異議提出而被移除。 此“使用IPC的理由”一節不符合維基百科的质量标准,需要完全重寫。 (2022年2月23日)請在討論頁中討論相關議題,並參考更优秀条目写作指南。 此條目需要編修,以確保文法、用詞、语气格式標點等使用恰当。 (2022年2月23日)請按照校對指引,幫助编辑這個條目。(幫助討論
行程間通訊
相互作用类型
上级分类技术 编辑
Stack Exchange標籤https://stackoverflow.com/tags/ipc 编辑
Inter-Process Communication」的各地常用名稱
中国大陸进程间通信
臺灣行程間通訊

进程间通信(Inter-Process Communication,简称IPC)是一种技术或方法,用于在至少两个进程或线程之间传输数据或信号。每个进程都有自己独立的系统资源,彼此隔离。为了实现不同进程之间的资源访问和协调工作,需要使用进程间通信。

通常,使用进程间通信的两个应用可以分为客户端和服务器(主从式架构)。客户端进程请求数据,服务器进程响应客户端的数据请求。有些应用既是服务器又是客户端,这种情况在分布式计算中很常见。这些进程可以运行在同一台计算机上,也可以运行在通过网络连接的不同计算机上。

IPC对于微内核和nano内核的设计过程非常重要。微内核减少了内核提供的功能数量,然后通过IPC与服务器通信来获取这些功能。与普通的宏内核相比,IPC的数量大幅增加。

使用IPC的理由

[编辑]
  • 資訊共享:Web服务器,通过网页浏览器使用进程间通信来共享web文件(网页等)和多媒体
  • 信息处理加速
  • 模組化
  • 私有權分離

主要的IPC方法

[编辑]
方法 提供方(操作系统或其他环境)
檔案 多數作業系統
信号 多數作業系統
Berkeley套接字 多數作業系統
消息队列 多數作業系統
管道 所有的POSIX 系統,Windows.
命名管道 所有的POSIX系统,Windows.
信号量 所有的POSIX系统,Windows.
共享内存 所有的POSIX系统,Windows.
訊息傳遞 用於MPI规范,Java RMICORBAMSMQ英语Microsoft Message QueuingMailSlot英语MailSlot以及其他.
内存映射文件 所有的POSIX系统,Windows.

参考文献

[编辑]
{{bottomLinkPreText}} {{bottomLinkText}}
行程間通訊
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?