{"id":68233,"date":"2019-03-21T07:27:42","date_gmt":"2019-03-20T22:27:42","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=68233"},"modified":"2019-03-21T07:27:53","modified_gmt":"2019-03-20T22:27:53","slug":"the-deadlock-empire","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/the-deadlock-empire\/","title":{"rendered":"The Deadlock Empire - \u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u697d\u3057\u304f\u5b66\u7fd2\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30aa\u30f3\u30e9\u30a4\u30f3\u30b2\u30fc\u30e0"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/03\/s_20190319_113102.jpg\" alt=\"S 20190319 113102\" title=\"s_20190319_113102.jpg\" border=\"0\" width=\"987\" height=\"515\" \/><\/p>\n<p>\u73fe\u5728\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u74b0\u5883\u3067\u306f\u3001\u540c\u3058\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u3067\u8907\u6570\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u540c\u6642\u306b\u52d5\u4f5c\u3059\u308b\u3001\u3044\u308f\u3086\u308b\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304c\u7c21\u5358\u306b\u5b9f\u884c\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u3001\u901a\u5e38\u306e\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3088\u308a\u96e3\u6613\u5ea6\u304c\u9ad8\u304f\u3001\u5b89\u6613\u306b\u8e0f\u307f\u8fbc\u3080\u3068\u3055\u307e\u3056\u307e\u306a\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/deadlockempire.github.io\/\">The Deadlock Empire<\/a>\u300d\u306f\u3001\u305d\u306e\u3088\u3046\u306a\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u767a\u751f\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u554f\u984c\u3092\u3001\u30af\u30a4\u30ba\u5f62\u5f0f\u3067\u51fa\u984c\u3059\u308b\u30aa\u30f3\u30e9\u30a4\u30f3\u30b2\u30fc\u30e0\u30b5\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>\u81ea\u5206\u304c\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u3068\u306a\u3063\u3066\u30b9\u30ec\u30c3\u30c9\u3092\u64cd\u308a\u3001\u540c\u671f\u3084\u30ed\u30c3\u30af\u3001\u30bb\u30de\u30d5\u30a9\u3001\u6761\u4ef6\u5909\u6570\u3068\u3044\u3063\u305f\u3055\u307e\u3056\u307e\u306a\u6982\u5ff5\u3092\u5b66\u3076\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u3068\u306a\u308a\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u5e1d\u56fd\u3092\u6253\u3061\u7834\u308b<\/h2>\n<p>The Deadlock Empire\u3067\u306f\u3001\u6700\u521d\u306b2\u3064\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u554f\u984c\u306e\u89e3\u304d\u65b9\u3092\u5b66\u3079\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/03\/tutorial_1.jpg\" alt=\"Tutorial 1\" title=\"tutorial_1.jpg\" border=\"0\" width=\"973\" height=\"655\" \/><\/p>\n<p>\u25b2\u300cTutorial 1: Interface\u300d\u3067\u306f\u753b\u9762\u306e\u898b\u65b9\u3092\u5b66\u3079\u307e\u3059\u3002\u753b\u9762\u306e\u4e2d\u7a0b\u306b\u554f\u984c\u304c\u63b2\u8f09\u3055\u308c\u3066\u3044\u3066\u3001\u3053\u306e\u5834\u5408\u4e8c\u3064\u306e\u30b9\u30ec\u30c3\u30c9\u3067\u30af\u30ea\u30c6\u30a3\u30ab\u30eb\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u540c\u6642\u306b\u5230\u9054\u3059\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002Thread 0\u3001Thread 1\u306e\u4e0b\u306b\u300cStep\u300d\u30dc\u30bf\u30f3\u304c\u3042\u308b\u306e\u3067\u4f55\u56de\u304b\u30af\u30ea\u30c3\u30af\u3057\u3066\u540c\u6642\u306bcritical_section()\u307e\u3067\u9032\u3081\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/03\/tutorial_2.jpg\" alt=\"Tutorial 2\" title=\"tutorial_2.jpg\" border=\"0\" width=\"972\" height=\"758\" \/><\/p>\n<p>\u25b2\u300cTutorial 2: Non-Atomic Instructions\u300d\u3067\u306f\u3001\u975e\u30a2\u30c8\u30df\u30c3\u30af\u306a\u547d\u4ee4\u3092\u6271\u3046\u305f\u3081\u306e\u300cExpand\u300d\u30dc\u30bf\u30f3\u306e\u4f7f\u7528\u6cd5\u3092\u5b66\u3079\u307e\u3059\u3002\u3053\u306e\u554f\u984c\u3082\u540c\u6642\u306bcritical_section()\u307e\u3067\u9032\u3081\u308c\u3070\u6210\u529f\u3067\u3059\u304c\u3001Expand\u30dc\u30bf\u30f3\u3092\u5229\u7528\u3057\u3066\u3001\u300ca = a + 1\u300d\u306e\u4ee3\u5165\u547d\u4ee4\u306e\u9014\u4e2d\u307e\u3067\u305d\u308c\u305e\u308c\u306e\u30b9\u30ec\u30c3\u30c9\u3067\u9032\u3081\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6b21\u304b\u3089\u304c\u5b9f\u969b\u306e\u554f\u984c\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/03\/s_20190319_115110.jpg\" alt=\"S 20190319 115110\" title=\"s_20190319_115110.jpg\" border=\"0\" width=\"968\" height=\"826\" \/><\/p>\n<p>\u25b2\u300cBoolean Flags Are Enough For Everyone\u300d\u3067\u306f\u3001\u30d5\u30e9\u30b0\u3092\u4f7f\u3063\u305f\u30af\u30ea\u30c6\u30a3\u30ab\u30eb\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u9632\u5fa1\u304c\u5f79\u306b\u305f\u305f\u306a\u3044\u3053\u3068\u304c\u5b66\u3079\u307e\u3059\u3002\u4e8c\u3064\u306e\u30b9\u30ec\u30c3\u30c9\u3067\u300cflag != false\u300d\u306e\u30c1\u30a7\u30c3\u30af\u306e\u5148\u307e\u3067\u9032\u3081\u3066\u304a\u3051\u3070\u3001\u7c21\u5358\u306bcritical_section()\u306b\u540c\u6642\u306b\u5230\u9054\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u5b9f\u969b\u306b\u624b\u3092\u52d5\u304b\u3057\u306a\u304c\u3089\u5b66\u7fd2\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u554f\u984c\u304c\u6b21\u3005\u3068\u51fa\u984c\u3055\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>The Deadlock Empire\u3067\u306f\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u306f\u307e\u308a\u3069\u3053\u308d\u3092\u697d\u3057\u304f\u5b66\u7fd2\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306fC#\u3067\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30d9\u30fc\u30b7\u30c3\u30af\u306a\u8868\u73fe\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001C#\u3092\u826f\u304f\u77e5\u3089\u306a\u3044\u3068\u3044\u3046\u958b\u767a\u8005\u306e\u65b9\u3067\u3082\u30c1\u30e3\u30ec\u30f3\u30b8\u53ef\u80fd\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73fe\u5728\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u74b0\u5883\u3067\u306f\u3001\u540c\u3058\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u3067\u8907\u6570\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u540c\u6642\u306b\u52d5\u4f5c\u3059\u308b\u3001\u3044\u308f\u3086\u308b\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304c\u7c21\u5358\u306b\u5b9f\u884c\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u3057\u304b\u3057\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u3001\u901a\u5e38\u306e\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":68286,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[66],"tags":[4231],"class_list":["post-68233","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webservice","tag-deadlock"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/68233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=68233"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/68233\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/68286"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=68233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=68233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=68233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}