{"id":2996,"date":"2024-12-24T07:59:25","date_gmt":"2024-12-23T22:59:25","guid":{"rendered":"https:\/\/www.agile-software.site\/?p=2996"},"modified":"2024-12-24T07:59:26","modified_gmt":"2024-12-23T22:59:26","slug":"ipc%e9%80%9a%e4%bf%a1","status":"publish","type":"post","link":"https:\/\/agile-software.net\/?p=2996","title":{"rendered":"IPC\u901a\u4fe1"},"content":{"rendered":"\n<p><br>IPC\uff08Inter-Process Communication, \u30d7\u30ed\u30bb\u30b9\u9593\u901a\u4fe1\uff09**\u3068\u306f\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u5185\u3067\u52d5\u4f5c\u3059\u308b\u8907\u6570\u306e\u30d7\u30ed\u30bb\u30b9\uff08\u30d7\u30ed\u30b0\u30e9\u30e0\uff09\u9593\u3067\u30c7\u30fc\u30bf\u3092\u3084\u308a\u53d6\u308a\u3059\u308b\u4ed5\u7d44\u307f\u306e\u3053\u3068\u3067\u3059\u3002\u73fe\u4ee3\u306e\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\uff08OS\uff09\u3067\u306f\u3001\u5404\u30d7\u30ed\u30bb\u30b9\u306f\u72ec\u7acb\u3057\u305f\u30a2\u30c9\u30ec\u30b9\u7a7a\u9593\u3092\u6301\u3061\u3001\u76f4\u63a5\u7684\u306b\u4ed6\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u30e1\u30e2\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u30d7\u30ed\u30bb\u30b9\u9593\u3067\u30c7\u30fc\u30bf\u3092\u4ea4\u63db\u3059\u308b\u305f\u3081\u306bIPC\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u4e3b\u306aIPC\u306e\u76ee\u7684<\/strong><\/p>\n\n\n\n<p>1. <strong>\u30c7\u30fc\u30bf\u306e\u5171\u6709<\/strong>: \u8907\u6570\u306e\u30d7\u30ed\u30bb\u30b9\u9593\u3067\u60c5\u5831\u3092\u5171\u6709\u3059\u308b\u305f\u3081\u3002<\/p>\n\n\n\n<p>2. <strong>\u540c\u671f<\/strong>: \u30d7\u30ed\u30bb\u30b9\u9593\u306e\u5b9f\u884c\u9806\u5e8f\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u3002<\/p>\n\n\n\n<p>3. <strong>\u30ea\u30bd\u30fc\u30b9\u306e\u5171\u6709<\/strong>: \u30e1\u30e2\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u3068\u3044\u3063\u305f\u5171\u6709\u30ea\u30bd\u30fc\u30b9\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u3002<\/p>\n\n\n\n<p>4. <strong>\u901a\u77e5<\/strong>: \u30d7\u30ed\u30bb\u30b9\u9593\u3067\u30a4\u30d9\u30f3\u30c8\u3084\u72b6\u614b\u306e\u5909\u5316\u3092\u901a\u77e5\u3059\u308b\u305f\u3081\u3002<\/p>\n\n\n\n<p><strong>IPC\u901a\u4fe1\u306e\u65b9\u6cd5<\/strong><\/p>\n\n\n\n<p><strong>1. \u5171\u6709\u30e1\u30e2\u30ea (Shared Memory)<\/strong><\/p>\n\n\n\n<p>\u2022 \u30d7\u30ed\u30bb\u30b9\u9593\u3067\u5171\u6709\u53ef\u80fd\u306a\u30e1\u30e2\u30ea\u9818\u57df\u3092\u4f5c\u6210\u3057\u3001\u305d\u3053\u306b\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3057\u3066\u5171\u6709\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u2022 \u9ad8\u901f\u306a\u30c7\u30fc\u30bf\u901a\u4fe1\u304c\u53ef\u80fd\u3067\u3059\u304c\u3001\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u3084\u540c\u671f\u51e6\u7406\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p><strong>2. \u30e1\u30c3\u30bb\u30fc\u30b8\u901a\u4fe1<\/strong><\/p>\n\n\n\n<p>\u2022 \u30d7\u30ed\u30bb\u30b9\u9593\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u53d7\u4fe1\u3057\u3066\u30c7\u30fc\u30bf\u3092\u4ea4\u63db\u3059\u308b\u65b9\u5f0f\u3002<\/p>\n\n\n\n<p>\u2022 \u4f8b: \u30e1\u30c3\u30bb\u30fc\u30b8\u30ad\u30e5\u30fc\u3001\u30d1\u30a4\u30d7\u3001\u30bd\u30b1\u30c3\u30c8\u3002<\/p>\n\n\n\n<p>\u2022 \u30b7\u30f3\u30d7\u30eb\u3067\u5b89\u5168\u6027\u304c\u9ad8\u3044\u53cd\u9762\u3001\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u5897\u3048\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>3. \u30b7\u30b0\u30ca\u30eb<\/strong><\/p>\n\n\n\n<p>\u2022 \u7279\u5b9a\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u901a\u77e5\u3059\u308b\u305f\u3081\u306e\u8efd\u91cf\u306a\u624b\u6bb5\u3002<\/p>\n\n\n\n<p>\u2022 \u4e3b\u306b\u30d7\u30ed\u30bb\u30b9\u306e\u505c\u6b62\u3001\u518d\u958b\u3001\u7d42\u4e86\u306a\u3069\u306e\u5236\u5fa1\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>4. \u30bd\u30b1\u30c3\u30c8\u901a\u4fe1<\/strong><\/p>\n\n\n\n<p>\u2022 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30c8\u30b3\u30eb\uff08TCP\/IP\u306a\u3069\uff09\u3092\u5229\u7528\u3057\u3066\u30d7\u30ed\u30bb\u30b9\u9593\u3067\u901a\u4fe1\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u2022 \u540c\u4e00\u306e\u30de\u30b7\u30f3\u4e0a\u3067\u3082\u30ea\u30e2\u30fc\u30c8\u30de\u30b7\u30f3\u9593\u3067\u3082\u4f7f\u7528\u53ef\u80fd\u3002<\/p>\n\n\n\n<p>\u2022 \u9ad8\u5ea6\u306a\u67d4\u8edf\u6027\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3084\u3084\u8907\u96d1\u3067\u3059\u3002<\/p>\n\n\n\n<p><strong>5. \u540d\u524d\u4ed8\u304d\u30d1\u30a4\u30d7 (Named Pipe)<\/strong><\/p>\n\n\n\n<p>\u2022 \u540d\u524d\u304c\u4ed8\u3051\u3089\u308c\u305f\u30d1\u30a4\u30d7\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u4e00\u65b9\u5411\u307e\u305f\u306f\u53cc\u65b9\u5411\u306b\u9001\u53d7\u4fe1\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u2022 \u4e00\u822c\u7684\u306b\u3001\u89aa\u5b50\u30d7\u30ed\u30bb\u30b9\u3084\u540c\u4e00\u30db\u30b9\u30c8\u4e0a\u306e\u30d7\u30ed\u30bb\u30b9\u9593\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>6. \u30bd\u30b1\u30c3\u30c8\u5bfe\u30e1\u30e2\u30ea\u30de\u30c3\u30d4\u30f3\u30b0<\/strong><\/p>\n\n\n\n<p>\u2022 \u30e1\u30e2\u30ea\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u6d3b\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3092\u5171\u6709\u3057\u3064\u3064\u3001\u30bd\u30b1\u30c3\u30c8\u3067\u88dc\u52a9\u7684\u306a\u901a\u4fe1\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>7. RPC (Remote Procedure Call)<\/strong><\/p>\n\n\n\n<p>\u2022 \u30d7\u30ed\u30bb\u30b9\u304c\u30ea\u30e2\u30fc\u30c8\u30d7\u30ed\u30bb\u30b9\u306e\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u901a\u4fe1\u3059\u308b\u65b9\u5f0f\u3002<\/p>\n\n\n\n<p>\u2022 \u5206\u6563\u30b7\u30b9\u30c6\u30e0\u3084\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u3067\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>8. DBUS<\/strong><\/p>\n\n\n\n<p>\u2022 Linux\u3084Unix\u7cfbOS\u3067\u306e\u30d7\u30ed\u30bb\u30b9\u9593\u901a\u4fe1\u306b\u7279\u5316\u3057\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u30d0\u30b9\u30b7\u30b9\u30c6\u30e0\u3002<\/p>\n\n\n\n<p>\u2022 \u7c21\u5358\u306b\u591a\u5bfe\u591a\u306e\u30d7\u30ed\u30bb\u30b9\u901a\u4fe1\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>IPC\u901a\u4fe1\u306e\u4f8b<\/strong><\/p>\n\n\n\n<p>\u2022 <strong>\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0<\/strong>:<\/p>\n\n\n\n<p>\u2022 UNIX\/Linux\u3067\u306f\u3001fork()\u3067\u751f\u6210\u3055\u308c\u305f\u89aa\u5b50\u30d7\u30ed\u30bb\u30b9\u9593\u3067\u30d1\u30a4\u30d7\u3092\u4f7f\u3063\u3066\u901a\u4fe1\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3002<\/p>\n\n\n\n<p>\u2022 Windows\u3067\u306f\u3001\u5171\u6709\u30e1\u30e2\u30ea\u3084\u547d\u540d\u30d1\u30a4\u30d7\uff08Named Pipes\uff09\u304c\u983b\u7e41\u306b\u4f7f\u7528\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<p>\u2022 <strong>Web\u30d6\u30e9\u30a6\u30b6<\/strong>:<\/p>\n\n\n\n<p>\u2022 \u30e1\u30a4\u30f3\u30d7\u30ed\u30bb\u30b9\uff08UI\u3092\u7ba1\u7406\uff09\u3068\u30ec\u30f3\u30c0\u30e9\u30fc\u30d7\u30ed\u30bb\u30b9\uff08\u30da\u30fc\u30b8\u63cf\u753b\uff09\u304cIPC\u3092\u901a\u3058\u3066\u3084\u308a\u53d6\u308a\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u2022 \u4f8b: Chrome\u306eChromium IPC\u3002<\/p>\n\n\n\n<p>\u2022 <strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0<\/strong>:<\/p>\n\n\n\n<p>\u2022 \u30b5\u30fc\u30d0\u30fc\u30d7\u30ed\u30bb\u30b9\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30d7\u30ed\u30bb\u30b9\u9593\u306e\u901a\u4fe1\u306b\u30bd\u30b1\u30c3\u30c8\u3092\u4f7f\u7528\u3002<\/p>\n\n\n\n<p><strong>IPC\u901a\u4fe1\u306e\u30e1\u30ea\u30c3\u30c8\u3068\u30c7\u30e1\u30ea\u30c3\u30c8<\/strong><\/p>\n\n\n\n<p><strong>\u30e1\u30ea\u30c3\u30c8<\/strong><\/p>\n\n\n\n<p>\u2022 <strong>\u30e2\u30b8\u30e5\u30fc\u30eb\u6027<\/strong>: \u30d7\u30ed\u30bb\u30b9\u3092\u5206\u5272\u3059\u308b\u3053\u3068\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3088\u308a\u69cb\u9020\u5316\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<p>\u2022 <strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<\/strong>: \u30d7\u30ed\u30bb\u30b9\u9593\u304c\u5206\u96e2\u3055\u308c\u308b\u3053\u3068\u3067\u3001\u76f4\u63a5\u7684\u306a\u30a2\u30af\u30bb\u30b9\u3092\u9632\u3050\u3002<\/p>\n\n\n\n<p>\u2022 <strong>\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3<\/strong>: \u5206\u6563\u30b7\u30b9\u30c6\u30e0\u3084\u8907\u6570\u30b3\u30a2\u3092\u6d3b\u7528\u3057\u305f\u4e26\u5217\u51e6\u7406\u306b\u9069\u5fdc\u3002<\/p>\n\n\n\n<p><strong>\u30c7\u30e1\u30ea\u30c3\u30c8<\/strong><\/p>\n\n\n\n<p>\u2022 <strong>\u8907\u96d1\u6027<\/strong>: \u8a2d\u8a08\u3084\u5b9f\u88c5\u304c\u8907\u96d1\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<p>\u2022 <strong>\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9<\/strong>: \u30c7\u30fc\u30bf\u306e\u30b3\u30d4\u30fc\u3084\u540c\u671f\u51e6\u7406\u306b\u4f34\u3046\u30b3\u30b9\u30c8\u304c\u767a\u751f\u3002<\/p>\n\n\n\n<p>\u2022 <strong>\u30c7\u30d0\u30c3\u30b0\u304c\u56f0\u96e3<\/strong>: \u8907\u6570\u30d7\u30ed\u30bb\u30b9\u9593\u3067\u306e\u30d0\u30b0\u3092\u8ffd\u8de1\u3059\u308b\u306e\u304c\u96e3\u3057\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IPC\uff08Inter-Process Communication, \u30d7\u30ed\u30bb\u30b9\u9593\u901a\u4fe1\uff09**\u3068\u306f\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u5185\u3067\u52d5\u4f5c\u3059\u308b\u8907\u6570\u306e\u30d7\u30ed\u30bb\u30b9\uff08\u30d7\u30ed\u30b0\u30e9\u30e0\uff09\u9593\u3067\u30c7\u30fc\u30bf\u3092\u3084\u308a\u53d6\u308a\u3059\u308b\u4ed5\u7d44\u307f\u306e\u3053\u3068\u3067\u3059\u3002\u73fe\u4ee3\u306e\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\uff08O<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jin_ogp_image_url":"","_jin_last_featured_id":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2996","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2996"}],"version-history":[{"count":1,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2996\/revisions"}],"predecessor-version":[{"id":2997,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2996\/revisions\/2997"}],"wp:attachment":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}