プロセス間通信
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
「[[マイクロソフト系技術情報 Wiki>http://techinfoofmicros...
-[[戻る>その他、開発の色々]]
* 目次 [#ucb91276]
#contents
*概要 [#tf883ba7]
プロセス間通信についてまとめた。
*詳細 [#d40d71c8]
**基本 [#w62e240d]
-共有メモリ、パイプ(名前付き/匿名)、[[TCP, UDP]]などが...
-子プロセスとの通信なら匿名パイプを使用すると良い。
***共有メモリ [#z4db4fcf]
-内部的には、ページングファイルに支持されたメモリマップド...
-実装については、下記の「[[SharedMem.xaml.cs>#ga1c6605]]...
ただし、[[Touryo.Infrastructure.Public.Util.SharedMemory>...
***パイプ [#t693fdb4]
-名前付きパイプ
--名前付きパイプを使用して、プロセス間通信を行う場合、~
パイプ・オブジェクトの始点と終端を2プロセス間で持つ。
--このとき、パイプ・オブジェクトをIDのようなもので~
識別するのが、名前付きパイプになる。
--従って、名前付きパイプの場合、~
2プロセスがパイプ名を共有している必要がある。
--詳細については、下記の「[[NdPipe.xaml.cs>#ga1c6605]]」...
-匿名パイプ
--一方、匿名パイプは、名前が無いので、名前で共有できない。
--その代りに、親プロセス側から、子プロセス側に、ハンドラ...
(従って、匿名パイプは、親子プロセス間通信での利用が一般...
--このハンドラの複製に、
---Windows OSでは、DuplicateHandle関数を使用し、
---Unix系OSでは、fork関数を使用する。
--参考
---[ C言語 ] プロセスの生成 ( fork ) と パイプによる~
プロセス間通信 ( pipe ) – 行け!偏差値40プログラマー~
http://hensa40.cutegirl.jp/archives/1032
---親プロセス・子プロセス間通信 - Qiita~
https://qiita.com/SoyaTakahashi/items/f28d0b5ef404afd339fa
---.NETでは、このハンドラの複製に、~
https://github.com/OpenTouryoProject/SampleProgram/blob/m...
HandleInheritability.Inheritableを使用している。~
これは、内部(Win32)的に、DuplicateHandle関数と思われる。
***UDP [#g9cdf481]
-コネクションレス型の通信
-実装については、下記の「[[UDP.xaml.cs>#ga1c6605]]」を参...
***TCP [#e54d5a5e]
-コネクション型の通信
-実装については、下記の「[[TCP.xaml.cs>#ga1c6605]]」を参...
**その他 [#z2424263]
***[[RPC]] [#c07b83ee]
-DCE/RPC
--DCOM
--.NET Remoting
-Webサービス
--XML-RPC
--JSON-RPC
-WCF (Windows Communication Foundation)
***[[ウィンドウ・システム]] > [[ウィンドウ メッセージ]] [...
**POSIX [#dab098d8]
-UNIXドメインソケット
-POSIXメッセージキュー
*参考 [#v50a11dd]
**POSIX [#nf38bd9e]
***Wikipedia [#c52a2b27]
-Category:プロセス間通信~
https://ja.wikipedia.org/wiki/Category:%E3%83%97%E3%83%AD...
--プロセス間通信~
https://ja.wikipedia.org/wiki/%E3%83%97%E3%83%AD%E3%82%BB...
--共有メモリ~
https://ja.wikipedia.org/wiki/%E5%85%B1%E6%9C%89%E3%83%A1...
--パイプ (コンピュータ)~
https://ja.wikipedia.org/wiki/%E3%83%91%E3%82%A4%E3%83%97...
---名前付きパイプ~
https://ja.wikipedia.org/wiki/%E5%90%8D%E5%89%8D%E4%BB%98...
--UNIXドメインソケット~
https://ja.wikipedia.org/wiki/UNIX%E3%83%89%E3%83%A1%E3%8...
--POSIX 1003.1b > Realtime (XSI Option) > _POSIX_MESSAGE_...
https://ja.wikipedia.org/wiki/POSIX_1003.1b#Realtime_(XSI...
***その他 [#z6888bb3]
-プロセス間通信 - UnixClassWiki~
https://uc2.h2np.net/index.php/%E3%83%97%E3%83%AD%E3%82%B...
-プロセス間通信の比較 - ka2yanの日記~
http://d.hatena.ne.jp/ka2yan/20090327
**OpenTouryoProject/SampleProgram · GitHub [#offaeb4a]
***InterProcComm at master [#ga1c6605]
https://github.com/OpenTouryoProject/SampleProgram/tree/m...
-[[SharedMem.xaml.cs>https://github.com/OpenTouryoProject...
-[[NdPipe.xaml.cs>https://github.com/OpenTouryoProject/Sa...
-[[UDP.xaml.cs>https://github.com/OpenTouryoProject/Sampl...
-[[TCP.xaml.cs>https://github.com/OpenTouryoProject/Sampl...
***PipesFamilyHouse at master [#vef413e1]
https://github.com/OpenTouryoProject/SampleProgram/tree/m...
-AnonymousPipe(匿名パイプによる親子プロセス間通信)
-StdIOAndPipe(標準入出力による親子プロセス間通信)
----
Tags: [[:プログラミング]], [[:その他、開発の色々]], [[:.N...
終了行:
「[[マイクロソフト系技術情報 Wiki>http://techinfoofmicros...
-[[戻る>その他、開発の色々]]
* 目次 [#ucb91276]
#contents
*概要 [#tf883ba7]
プロセス間通信についてまとめた。
*詳細 [#d40d71c8]
**基本 [#w62e240d]
-共有メモリ、パイプ(名前付き/匿名)、[[TCP, UDP]]などが...
-子プロセスとの通信なら匿名パイプを使用すると良い。
***共有メモリ [#z4db4fcf]
-内部的には、ページングファイルに支持されたメモリマップド...
-実装については、下記の「[[SharedMem.xaml.cs>#ga1c6605]]...
ただし、[[Touryo.Infrastructure.Public.Util.SharedMemory>...
***パイプ [#t693fdb4]
-名前付きパイプ
--名前付きパイプを使用して、プロセス間通信を行う場合、~
パイプ・オブジェクトの始点と終端を2プロセス間で持つ。
--このとき、パイプ・オブジェクトをIDのようなもので~
識別するのが、名前付きパイプになる。
--従って、名前付きパイプの場合、~
2プロセスがパイプ名を共有している必要がある。
--詳細については、下記の「[[NdPipe.xaml.cs>#ga1c6605]]」...
-匿名パイプ
--一方、匿名パイプは、名前が無いので、名前で共有できない。
--その代りに、親プロセス側から、子プロセス側に、ハンドラ...
(従って、匿名パイプは、親子プロセス間通信での利用が一般...
--このハンドラの複製に、
---Windows OSでは、DuplicateHandle関数を使用し、
---Unix系OSでは、fork関数を使用する。
--参考
---[ C言語 ] プロセスの生成 ( fork ) と パイプによる~
プロセス間通信 ( pipe ) – 行け!偏差値40プログラマー~
http://hensa40.cutegirl.jp/archives/1032
---親プロセス・子プロセス間通信 - Qiita~
https://qiita.com/SoyaTakahashi/items/f28d0b5ef404afd339fa
---.NETでは、このハンドラの複製に、~
https://github.com/OpenTouryoProject/SampleProgram/blob/m...
HandleInheritability.Inheritableを使用している。~
これは、内部(Win32)的に、DuplicateHandle関数と思われる。
***UDP [#g9cdf481]
-コネクションレス型の通信
-実装については、下記の「[[UDP.xaml.cs>#ga1c6605]]」を参...
***TCP [#e54d5a5e]
-コネクション型の通信
-実装については、下記の「[[TCP.xaml.cs>#ga1c6605]]」を参...
**その他 [#z2424263]
***[[RPC]] [#c07b83ee]
-DCE/RPC
--DCOM
--.NET Remoting
-Webサービス
--XML-RPC
--JSON-RPC
-WCF (Windows Communication Foundation)
***[[ウィンドウ・システム]] > [[ウィンドウ メッセージ]] [...
**POSIX [#dab098d8]
-UNIXドメインソケット
-POSIXメッセージキュー
*参考 [#v50a11dd]
**POSIX [#nf38bd9e]
***Wikipedia [#c52a2b27]
-Category:プロセス間通信~
https://ja.wikipedia.org/wiki/Category:%E3%83%97%E3%83%AD...
--プロセス間通信~
https://ja.wikipedia.org/wiki/%E3%83%97%E3%83%AD%E3%82%BB...
--共有メモリ~
https://ja.wikipedia.org/wiki/%E5%85%B1%E6%9C%89%E3%83%A1...
--パイプ (コンピュータ)~
https://ja.wikipedia.org/wiki/%E3%83%91%E3%82%A4%E3%83%97...
---名前付きパイプ~
https://ja.wikipedia.org/wiki/%E5%90%8D%E5%89%8D%E4%BB%98...
--UNIXドメインソケット~
https://ja.wikipedia.org/wiki/UNIX%E3%83%89%E3%83%A1%E3%8...
--POSIX 1003.1b > Realtime (XSI Option) > _POSIX_MESSAGE_...
https://ja.wikipedia.org/wiki/POSIX_1003.1b#Realtime_(XSI...
***その他 [#z6888bb3]
-プロセス間通信 - UnixClassWiki~
https://uc2.h2np.net/index.php/%E3%83%97%E3%83%AD%E3%82%B...
-プロセス間通信の比較 - ka2yanの日記~
http://d.hatena.ne.jp/ka2yan/20090327
**OpenTouryoProject/SampleProgram · GitHub [#offaeb4a]
***InterProcComm at master [#ga1c6605]
https://github.com/OpenTouryoProject/SampleProgram/tree/m...
-[[SharedMem.xaml.cs>https://github.com/OpenTouryoProject...
-[[NdPipe.xaml.cs>https://github.com/OpenTouryoProject/Sa...
-[[UDP.xaml.cs>https://github.com/OpenTouryoProject/Sampl...
-[[TCP.xaml.cs>https://github.com/OpenTouryoProject/Sampl...
***PipesFamilyHouse at master [#vef413e1]
https://github.com/OpenTouryoProject/SampleProgram/tree/m...
-AnonymousPipe(匿名パイプによる親子プロセス間通信)
-StdIOAndPipe(標準入出力による親子プロセス間通信)
----
Tags: [[:プログラミング]], [[:その他、開発の色々]], [[:.N...
ページ名: