{"published":"2010-10-05 01:06:42","height":"190","provider_name":"Hatena Blog","blog_url":"https://i-saint.hatenablog.com/","version":"1.0","categories":[],"author_url":"https://blog.hatena.ne.jp/i-saint/","type":"rich","blog_title":"primitive: blog","url":"https://i-saint.hatenablog.com/entry/20101005/1286208402","description":"\u4eca\u56de\u306f\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306e\u5384\u4ecb\u306a\u554f\u984c\u3001\u30e1\u30e2\u30ea\u540c\u671f\u306b\u3064\u3044\u3066\u3002 \u8981\u3059\u308b\u306b\u304d\u3061\u3093\u3068\u6392\u4ed6\u5236\u5fa1\u3057\u308d\u3068\u3044\u3046\u5f53\u305f\u308a\u524d\u306e\u8a71\u306a\u3093\u3060\u3051\u3069\u3001\u4f55\u6545\u304d\u3061\u3093\u3068\u6392\u4ed6\u5236\u5fa1\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u304b\u307e\u3067\u6df1\u304f\u8aac\u660e\u3057\u3066\u308b\u306e\u306f\u3042\u307e\u308a\u898b\u306a\u3044\u6c17\u304c\u3057\u307e\u3059\u3002 \u4f8b \u4f8b\u3048\u3070\u3053\u3093\u306a\u30b3\u30fc\u30c9\u3067 bool g_complete = false; int g_message[100]; void foo(int i) { g_message[i/10] = 42; g_complete = true; } void bar() { while(!g_complete) { // foo() \u304c\u7d42\u308f\u308b\u307e\u3067 busy loop \u3057\u3066\u5f85\u3064\u3064\u3082\u308a } pr\u2026","title":"\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3068\u30e1\u30e2\u30ea\u540c\u671f","image_url":null,"author_name":"i-saint","width":"100%","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fi-saint.hatenablog.com%2Fentry%2F20101005%2F1286208402\" title=\"\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3068\u30e1\u30e2\u30ea\u540c\u671f - primitive: blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}