{"id":121054,"date":"2024-03-24T01:06:42","date_gmt":"2024-03-23T16:06:42","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/"},"modified":"2024-04-05T03:40:06","modified_gmt":"2024-04-04T18:40:06","slug":"linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/","title":{"rendered":"Linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f?"},"content":{"rendered":"<p>Linux\u3067\u306f\u3001\u30df\u30e5\u30c6\u30c3\u30af\u30b9\u30ed\u30c3\u30af(mutex lock) \u306e\u53d6\u5f97\u306bmutex_lock() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u306e\u4e2d\u3067\u547c\u3073\u51fa\u3057\u3001\u540c\u4e00\u6642\u9593\u306b 1 \u3064\u306e\u30b9\u30ec\u30c3\u30c9\u306e\u307f\u304c\u5171\u6709\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>mutex_lock()\u95a2\u6570\u306f\u4ee5\u4e0b\u306e\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3092\u6709\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-type\">int<\/span> <span class=\"hljs-title function_\">mutex_lock<\/span><span class=\"hljs-params\">(<span class=\"hljs-type\">pthread_mutex_t<\/span> *mutex)<\/span>;\r\n<\/code><\/pre>\n<p>\u30d1\u30e9\u30e1\u30fc\u30bfmutex\u306fpthread_mutex_t\u578b\u306emutex\u5909\u6570\u3092\u6307\u3059\u30dd\u30a4\u30f3\u30bf\u3067\u3042\u308b\u3002<\/p>\n<p>mutex_lock \u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u306e\u53d6\u5f97\u304c\u8a66\u307f\u3089\u308c\u3001\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u304c\uff08\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u30b9\u30ec\u30c3\u30c9\u304c\u306a\u3044\uff09\u73fe\u5728\u4f7f\u7528\u53ef\u80fd\u3067\u3042\u308c\u3070\u3001\u305d\u306e\u30b9\u30ec\u30c3\u30c9\u306f\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3057\u3066\u3001\u5b9f\u884c\u3092\u7d9a\u3051\u307e\u3059\u3002\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u304c\u73fe\u5728\u4ed6\u306e\u30b9\u30ec\u30c3\u30c9\u306b\u3088\u3063\u3066\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u306e\u30b9\u30ec\u30c3\u30c9\u306f\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3001\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u53ef\u80fd\u306b\u306a\u308b\u307e\u3067\u5f85\u6a5f\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e00\u5ea6\u30b9\u30ec\u30c3\u30c9\u304c\u6392\u4ed6\u30ed\u30c3\u30af\u3092\u53d6\u5f97\u3067\u304d\u305f\u3089\u3001\u4ed6\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u30ed\u30c3\u30af\u3092\u53d6\u5f97\u3057\u3066\u5171\u6709\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u5171\u6709\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u5fc5\u8981\u306a\u304f\u306a\u3063\u305f\u6bb5\u968e\u3067\u6392\u4ed6\u30ed\u30c3\u30af\u3092\u78ba\u5b9f\u306b\u89e3\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u6392\u4ed6\u30ed\u30c3\u30af\u306e\u89e3\u9664\u306b\u306f\u3001mutex_unlock() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001mutex_lock()\u95a2\u6570\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u793a\u3059\u7c21\u5358\u306a\u4f8b\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;stdio.h&gt;<\/span><\/span>\r\n<span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;pthread.h&gt;<\/span><\/span>\r\n<span class=\"hljs-type\">pthread_mutex_t<\/span> mutex;  <span class=\"hljs-comment\">\/\/ \u5b9a\u4e49\u4e92\u65a5\u9501<\/span>\r\n<span class=\"hljs-type\">void<\/span>* <span class=\"hljs-title function_\">thread_function<\/span><span class=\"hljs-params\">(<span class=\"hljs-type\">void<\/span>* arg)<\/span> {\r\npthread_mutex_lock(&amp;mutex);  <span class=\"hljs-comment\">\/\/ \u83b7\u53d6\u4e92\u65a5\u9501<\/span>\r\n<span class=\"hljs-comment\">\/\/ \u8bbf\u95ee\u5171\u4eab\u8d44\u6e90<\/span>\r\n<span class=\"hljs-built_in\">printf<\/span>(<span class=\"hljs-string\">\"Thread %d is accessing the shared resource.\\n\"<\/span>, *(<span class=\"hljs-type\">int<\/span>*)arg);\r\npthread_mutex_unlock(&amp;mutex);  <span class=\"hljs-comment\">\/\/ \u91ca\u653e\u4e92\u65a5\u9501<\/span>\r\n<span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-literal\">NULL<\/span>;\r\n}\r\n<span class=\"hljs-type\">int<\/span> <span class=\"hljs-title function_\">main<\/span><span class=\"hljs-params\">()<\/span> {\r\n<span class=\"hljs-type\">pthread_t<\/span> thread1, thread2;\r\npthread_mutex_init(&amp;mutex, <span class=\"hljs-literal\">NULL<\/span>);  <span class=\"hljs-comment\">\/\/ \u521d\u59cb\u5316\u4e92\u65a5\u9501<\/span>\r\n<span class=\"hljs-type\">int<\/span> id1 = <span class=\"hljs-number\">1<\/span>;\r\npthread_create(&amp;thread1, <span class=\"hljs-literal\">NULL<\/span>, thread_function, &amp;id1);  <span class=\"hljs-comment\">\/\/ \u521b\u5efa\u7ebf\u7a0b1<\/span>\r\n<span class=\"hljs-type\">int<\/span> id2 = <span class=\"hljs-number\">2<\/span>;\r\npthread_create(&amp;thread2, <span class=\"hljs-literal\">NULL<\/span>, thread_function, &amp;id2);  <span class=\"hljs-comment\">\/\/ \u521b\u5efa\u7ebf\u7a0b2<\/span>\r\npthread_join(thread1, <span class=\"hljs-literal\">NULL<\/span>);  <span class=\"hljs-comment\">\/\/ \u7b49\u5f85\u7ebf\u7a0b1\u7ed3\u675f<\/span>\r\npthread_join(thread2, <span class=\"hljs-literal\">NULL<\/span>);  <span class=\"hljs-comment\">\/\/ \u7b49\u5f85\u7ebf\u7a0b2\u7ed3\u675f<\/span>\r\npthread_mutex_destroy(&amp;mutex);  <span class=\"hljs-comment\">\/\/ \u9500\u6bc1\u4e92\u65a5\u9501<\/span>\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\u30012 \u3064\u306e\u30b9\u30ec\u30c3\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3069\u3061\u3089\u306e\u30b9\u30ec\u30c3\u30c9\u3082 thread_function() \u95a2\u6570\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u5404\u30b9\u30ec\u30c3\u30c9\u306f\u3001\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u969b\u306b\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068\u3057\u3001\u5171\u6709\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u529b\u3057\u307e\u3059\u30021 \u3064\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u3092\u7372\u5f97\u3059\u308b\u3068\u3001\u3082\u3046 1 \u3064\u306e\u30b9\u30ec\u30c3\u30c9\u306f\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u304c\u89e3\u653e\u3055\u308c\u308b\u307e\u3067\u30d6\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u306e\u521d\u671f\u5316\u3068\u7834\u68c4\u306f\u3001pthread_mutex_init()\u3001pthread_mutex_destroy() \u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u3067\u306f\u3001\u30df\u30e5\u30c6\u30c3\u30af\u30b9\u30ed\u30c3\u30af(mutex lock) \u306e\u53d6\u5f97\u306bmutex_lock() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u306e\u4e2d\u3067\u547c\u3073\u51fa\u3057\u3001\u540c\u4e00\u6642\u9593\u306b 1 \u3064\u306e\u30b9\u30ec\u30c3\u30c9\u306e\u307f\u304c\u5171\u6709\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e [&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-121054","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>Linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f? - 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\/linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f?\" \/>\n<meta property=\"og:description\" content=\"Linux\u3067\u306f\u3001\u30df\u30e5\u30c6\u30c3\u30af\u30b9\u30ed\u30c3\u30af(mutex lock) \u306e\u53d6\u5f97\u306bmutex_lock() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u306e\u4e2d\u3067\u547c\u3073\u51fa\u3057\u3001\u540c\u4e00\u6642\u9593\u306b 1 \u3064\u306e\u30b9\u30ec\u30c3\u30c9\u306e\u307f\u304c\u5171\u6709\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-23T16:06:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-04T18:40:06+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\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/\",\"name\":\"Linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f? - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-23T16:06:42+00:00\",\"dateModified\":\"2024-04-04T18:40:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f?\"}]},{\"@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\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f? - 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\/linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f\/","og_locale":"ja_JP","og_type":"article","og_title":"Linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f?","og_description":"Linux\u3067\u306f\u3001\u30df\u30e5\u30c6\u30c3\u30af\u30b9\u30ed\u30c3\u30af(mutex lock) \u306e\u53d6\u5f97\u306bmutex_lock() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u306e\u4e2d\u3067\u547c\u3073\u51fa\u3057\u3001\u540c\u4e00\u6642\u9593\u306b 1 \u3064\u306e\u30b9\u30ec\u30c3\u30c9\u306e\u307f\u304c\u5171\u6709\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-23T16:06:42+00:00","article_modified_time":"2024-04-04T18:40:06+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\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/","name":"Linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f? - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-23T16:06:42+00:00","dateModified":"2024-04-04T18:40:06+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Linux\u306emutex_lock\u95a2\u6570\u306e\u4f7f\u3044\u65b9\u306f?"}]},{"@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\/linux%e3%81%aemutex_lock%e9%96%a2%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%af\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/121054","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=121054"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/121054\/revisions"}],"predecessor-version":[{"id":306737,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/121054\/revisions\/306737"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=121054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=121054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=121054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}