{"id":26035,"date":"2024-03-17T06:15:52","date_gmt":"2024-03-16T21:15:52","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/"},"modified":"2024-03-22T12:54:54","modified_gmt":"2024-03-22T03:54:54","slug":"c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/","title":{"rendered":"C++\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f"},"content":{"rendered":"<p>C++\u3067\u306f\u3001\u8907\u6570\u30b9\u30ec\u30c3\u30c9\u3067\u5171\u6709\u30c7\u30fc\u30bf\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306b\u306f\u3001mutex\u3068\u6761\u4ef6\u5909\u6570\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5171\u6709\u30c7\u30fc\u30bf\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306b\u6392\u4ed6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3057\u3001\u3044\u3064\u3067\u30821\u3064\u306e\u30b9\u30ec\u30c3\u30c9\u3060\u3051\u304c\u5171\u6709\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30b9\u30ec\u30c3\u30c9\u304c\u5171\u6709\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u306b\u306f\u3001\u6392\u4ed6\u30ed\u30c3\u30af\u3092\u53d6\u5f97\u3057\u3066\u304b\u3089\u5171\u6709\u30c7\u30fc\u30bf\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u7d42\u308f\u3063\u305f\u3089\u6392\u4ed6\u30ed\u30c3\u30af\u3092\u89e3\u653e\u3057\u3001\u4ed6\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u7d9a\u3051\u3066\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u6761\u4ef6\u5909\u6570\u306f\u3001\u30b9\u30ec\u30c3\u30c9\u9593\u306e\u540c\u671f\u3084\u901a\u4fe1\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u6761\u4ef6\u5909\u6570\u3092\u4f7f\u3046\u3068\u3001\u3042\u308b\u30b9\u30ec\u30c3\u30c9\u306f\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u308b\u307e\u3067\u5f85\u6a5f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u5225\u306e\u30b9\u30ec\u30c3\u30c9\u306f\u30b7\u30b0\u30ca\u30eb\u3092\u9001\u4fe1\u3057\u3066\u5f85\u6a5f\u4e2d\u306e\u30b9\u30ec\u30c3\u30c9\u306b\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u305f\u3053\u3068\u3092\u901a\u77e5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u901a\u5e38\u3001\u6761\u4ef6\u5909\u6570\u306f\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u3068\u4e00\u7dd2\u306b\u4f7f\u7528\u3055\u308c\u3001\u7af6\u5408\u72b6\u614b\u304c\u767a\u751f\u3057\u306a\u3044\u3088\u3046\u306b\u6761\u4ef6\u3092\u5f85\u3064\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u30c7\u30fc\u30bf\u3092\u5171\u6709\u3059\u308b\u305f\u3081\u306b\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u3068\u6761\u4ef6\u5909\u6570\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;iostream&gt;<\/span><\/span>\r\n<span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;thread&gt;<\/span><\/span>\r\n<span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;mutex&gt;<\/span><\/span>\r\n<span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;condition_variable&gt;<\/span><\/span>\r\n\r\nstd::mutex mtx;  <span class=\"hljs-comment\">\/\/ \u4e92\u65a5\u9501<\/span>\r\nstd::condition_variable cv;  <span class=\"hljs-comment\">\/\/ \u6761\u4ef6\u53d8\u91cf<\/span>\r\n<span class=\"hljs-type\">int<\/span> sharedData = <span class=\"hljs-number\">0<\/span>;  <span class=\"hljs-comment\">\/\/ \u5171\u4eab\u6570\u636e<\/span>\r\n\r\n<span class=\"hljs-function\"><span class=\"hljs-type\">void<\/span> <span class=\"hljs-title\">worker<\/span><span class=\"hljs-params\">(<span class=\"hljs-type\">int<\/span> id)<\/span> <\/span>{\r\n  <span class=\"hljs-function\">std::unique_lock&lt;std::mutex&gt; <span class=\"hljs-title\">lock<\/span><span class=\"hljs-params\">(mtx)<\/span><\/span>;  <span class=\"hljs-comment\">\/\/ \u83b7\u53d6\u4e92\u65a5\u9501<\/span>\r\n\r\n  <span class=\"hljs-comment\">\/\/ \u7b49\u5f85\u5171\u4eab\u6570\u636e\u88ab\u66f4\u65b0\u4e3a\u6307\u5b9a\u503c<\/span>\r\n  cv.<span class=\"hljs-built_in\">wait<\/span>(lock, []{ <span class=\"hljs-keyword\">return<\/span> sharedData == <span class=\"hljs-number\">42<\/span>; });\r\n\r\n  <span class=\"hljs-comment\">\/\/ \u8bbf\u95ee\u5171\u4eab\u6570\u636e<\/span>\r\n  std::cout &lt;&lt; <span class=\"hljs-string\">\"Thread \"<\/span> &lt;&lt; id &lt;&lt; <span class=\"hljs-string\">\": Shared data = \"<\/span> &lt;&lt; sharedData &lt;&lt; std::endl;\r\n\r\n  <span class=\"hljs-comment\">\/\/ \u91ca\u653e\u4e92\u65a5\u9501<\/span>\r\n  lock.<span class=\"hljs-built_in\">unlock<\/span>();\r\n}\r\n\r\n<span class=\"hljs-function\"><span class=\"hljs-type\">int<\/span> <span class=\"hljs-title\">main<\/span><span class=\"hljs-params\">()<\/span> <\/span>{\r\n  <span class=\"hljs-function\">std::thread <span class=\"hljs-title\">t1<\/span><span class=\"hljs-params\">(worker, <span class=\"hljs-number\">1<\/span>)<\/span><\/span>;\r\n  <span class=\"hljs-function\">std::thread <span class=\"hljs-title\">t2<\/span><span class=\"hljs-params\">(worker, <span class=\"hljs-number\">2<\/span>)<\/span><\/span>;\r\n\r\n  <span class=\"hljs-comment\">\/\/ \u66f4\u65b0\u5171\u4eab\u6570\u636e<\/span>\r\n  std::this_thread::<span class=\"hljs-built_in\">sleep_for<\/span>(std::chrono::<span class=\"hljs-built_in\">seconds<\/span>(<span class=\"hljs-number\">2<\/span>));  <span class=\"hljs-comment\">\/\/ \u6a21\u62df\u4e00\u6bb5\u8017\u65f6\u64cd\u4f5c<\/span>\r\n  {\r\n    <span class=\"hljs-function\">std::lock_guard&lt;std::mutex&gt; <span class=\"hljs-title\">lock<\/span><span class=\"hljs-params\">(mtx)<\/span><\/span>;  <span class=\"hljs-comment\">\/\/ \u83b7\u53d6\u4e92\u65a5\u9501<\/span>\r\n\r\n    sharedData = <span class=\"hljs-number\">42<\/span>;\r\n\r\n    <span class=\"hljs-comment\">\/\/ \u901a\u77e5\u7b49\u5f85\u7684\u7ebf\u7a0b\u6761\u4ef6\u5df2\u7ecf\u6210\u7acb<\/span>\r\n    cv.<span class=\"hljs-built_in\">notify_all<\/span>();\r\n  }\r\n\r\n  t1.<span class=\"hljs-built_in\">join<\/span>();\r\n  t2.<span class=\"hljs-built_in\">join<\/span>();\r\n\r\n  <span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-number\">0<\/span>;\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u5171\u6709\u30c7\u30fc\u30bf\u304c\u6307\u5b9a\u3055\u308c\u305f\u5024\uff0842\uff09\u306b\u66f4\u65b0\u3055\u308c\u308b\u306e\u3092\u5f85\u3063\u3066\u3044\u308b2\u3064\u306e\u30b9\u30ec\u30c3\u30c9\uff08t1\u3068t2\uff09\u304c\u3042\u308a\u307e\u3059\u3002\u30e1\u30a4\u30f3\u30b9\u30ec\u30c3\u30c9\u306f\u4e00\u5b9a\u6642\u9593\u5f85\u3063\u305f\u5f8c\u306b\u5171\u6709\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3057\u3001\u5f85\u6a5f\u4e2d\u306e\u30b9\u30ec\u30c3\u30c9\u306b\u6761\u4ef6\u304c\u6210\u7acb\u3057\u305f\u3053\u3068\u3092\u901a\u77e5\u3057\u307e\u3059\u3002\u5f85\u6a5f\u4e2d\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u518d\u3073mutex\u3092\u53d6\u5f97\u3057\u3066\u5171\u6709\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e92\u65a5\u30ed\u30c3\u30af\u3068\u6761\u4ef6\u5909\u6570\u306e\u4f7f\u7528\u306f\u30da\u30a2\u3067\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u3001\u6761\u4ef6\u3092\u5f85\u3064\u969b\u306b\u306f\u540c\u3058\u4e92\u65a5\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u4e92\u65a5\u30ed\u30c3\u30af\u3068\u6761\u4ef6\u5909\u6570\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u306f\u3001\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u3084\u7af6\u5408\u72b6\u614b\u306e\u767a\u751f\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3001\u30b9\u30ec\u30c3\u30c9\u306e\u5b9f\u884c\u9806\u5e8f\u3084\u64cd\u4f5c\u3092\u614e\u91cd\u306b\u8a2d\u8a08\u3057\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++\u3067\u306f\u3001\u8907\u6570\u30b9\u30ec\u30c3\u30c9\u3067\u5171\u6709\u30c7\u30fc\u30bf\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306b\u306f\u3001mutex\u3068\u6761\u4ef6\u5909\u6570\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002 \u5171\u6709\u30c7\u30fc\u30bf\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306b\u6392\u4ed6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3057\u3001\u3044\u3064\u3067\u30821\u3064\u306e\u30b9\u30ec\u30c3\u30c9\u3060\u3051\u304c\u5171\u6709\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30b9\u30ec\u30c3\u30c9\u304c\u5171\u6709 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-26035","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/c\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\" \/>\n<meta property=\"og:description\" content=\"C++\u3067\u306f\u3001\u8907\u6570\u30b9\u30ec\u30c3\u30c9\u3067\u5171\u6709\u30c7\u30fc\u30bf\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306b\u306f\u3001mutex\u3068\u6761\u4ef6\u5909\u6570\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002 \u5171\u6709\u30c7\u30fc\u30bf\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306b\u6392\u4ed6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3057\u3001\u3044\u3064\u3067\u30821\u3064\u306e\u30b9\u30ec\u30c3\u30c9\u3060\u3051\u304c\u5171\u6709\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30b9\u30ec\u30c3\u30c9\u304c\u5171\u6709 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/c\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-16T21:15:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-22T03:54:54+00:00\" \/>\n<meta name=\"author\" content=\"\u7d50\u8863, \u6625\u82b1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7d50\u8863, \u6625\u82b1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/\",\"name\":\"C++\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-16T21:15:52+00:00\",\"dateModified\":\"2024-03-22T03:54:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac\",\"name\":\"\u7d50\u8863, \u6625\u82b1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g\",\"caption\":\"\u7d50\u8863, \u6625\u82b1\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/yuiharuka\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"C++\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/c\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"C++\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f","og_description":"C++\u3067\u306f\u3001\u8907\u6570\u30b9\u30ec\u30c3\u30c9\u3067\u5171\u6709\u30c7\u30fc\u30bf\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306b\u306f\u3001mutex\u3068\u6761\u4ef6\u5909\u6570\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002 \u5171\u6709\u30c7\u30fc\u30bf\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306b\u6392\u4ed6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3057\u3001\u3044\u3064\u3067\u30821\u3064\u306e\u30b9\u30ec\u30c3\u30c9\u3060\u3051\u304c\u5171\u6709\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30b9\u30ec\u30c3\u30c9\u304c\u5171\u6709 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/c\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-16T21:15:52+00:00","article_modified_time":"2024-03-22T03:54:54+00:00","author":"\u7d50\u8863, \u6625\u82b1","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u7d50\u8863, \u6625\u82b1","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/","name":"C++\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-16T21:15:52+00:00","dateModified":"2024-03-22T03:54:54+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"C++\u3067\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306e\u5b9f\u88c5\u65b9\u6cd5\u306f\u4f55\u3067\u3059\u304b\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac","name":"\u7d50\u8863, \u6625\u82b1","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g","caption":"\u7d50\u8863, \u6625\u82b1"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/yuiharuka\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c%e3%81%a7%e3%81%ae%e3%83%9e%e3%83%ab%e3%83%81%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%81%a7%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e5%85%b1%e6%9c%89%e3%81%ae%e5%ae%9f%e8%a3%85%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/26035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=26035"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/26035\/revisions"}],"predecessor-version":[{"id":107605,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/26035\/revisions\/107605"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=26035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=26035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=26035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}