{"url":"https://www.yasuhisay.info/entry/20091227/1261837873","author_url":"https://blog.hatena.ne.jp/syou6162/","title":"pthread\u95a2\u4fc2\u306e\u30e1\u30e2","type":"rich","published":"2009-12-27 23:31:13","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F20091227%2F1261837873\" title=\"pthread\u95a2\u4fc2\u306e\u30e1\u30e2 - yasuhisa&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"yasuhisa's blog","provider_name":"Hatena Blog","categories":["C++"],"width":"100%","provider_url":"https://hatena.blog","image_url":null,"height":"190","description":"\u95a2\u6570\u30dd\u30a4\u30f3\u30bf\u3081\u3093\u3069\u304f\u305b\u3048\u3001\u7121\u540d\u95a2\u6570\u4f5c\u3089\u305b\u308d\u3063\u3066\u611f\u3058\u3067\u3059!! \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u547d\u4ee4\u3084\u30b0\u30ed\u30fc\u30d0\u30eb\u30c7\u30fc\u30bf\u306e\u3088\u3046\u306a\u3082\u306e\u306f\u30d7\u30ed\u30bb\u30b9\u306b\u53ce\u3081\u308b \u30d7\u30ed\u30b0\u30e9\u30e0\u30ab\u30a6\u30f3\u30bf\u3084\u30b9\u30bf\u30c3\u30af\u3068\u3044\u3063\u305f\u5b9f\u884c\u72b6\u614b\u306b\u95a2\u9023\u3059\u308b\u60c5\u5831\u306f\u30b9\u30ec\u30c3\u30c9\u306b\u53ce\u3081\u308b #include <iostream> #include <pthread.h> void* do_one_thing(void *arg) { int *pnum_times = (int *) arg; int x = 0; for(int i = 0; i < 4; i++) { std::cout << \"doing one thing\" << std::endl; for(int j\u2026","blog_url":"https://www.yasuhisay.info/","author_name":"syou6162"}