{"blog_url":"https://yupo5656.hatenadiary.org/","description":"\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u306e\u30b3\u30fc\u30c9\u3067\u30b7\u30b0\u30ca\u30eb\u30cf\u30f3\u30c9\u30e9\u4e2d\u3067fork\u3057\u3001\u5b50\u30d7\u30ed\u30bb\u30b9\u304c\u975e\u540c\u671f\u30b7\u30b0\u30ca\u30eb\u30bb\u30fc\u30d5\u306a\u95a2\u6570\u3092\u547c\u3093\u3067\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u3059\u308b\u5b9f\u4f8b\u3067\u3059\u3002 \u975e\u540c\u671f\u30b7\u30b0\u30ca\u30eb\u30bb\u30fc\u30d5\u306a\u95a2\u6570\u3068\u3057\u3066 a() \u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u95a2\u6570\u306f\u5165\u308a\u53e3\u3067mutex\u3092\u30ed\u30c3\u30af\u3001\u4e2d\u306710\u79d2\u5bdd\u3066\u3001mutex\u3092\u30a2\u30f3\u30ed\u30c3\u30af\u3057\u3066\u623b\u308a\u307e\u3059\u3002 #include <sys/types.h> #include <time.h> #include <unistd.h> #include <signal.h> #include <pthread.h> #include <stdio.h> void a(void) { static pthread_mutex_t \u2026","provider_name":"Hatena Blog","blog_title":"memologue","author_url":"https://blog.hatena.ne.jp/yupo5656/","height":"190","width":"100%","categories":["C++","POSIX"],"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyupo5656.hatenadiary.org%2Fentry%2F20040911%2Fp4\" title=\" \u30b7\u30b0\u30ca\u30eb\u30cf\u30f3\u30c9\u30e9\u304b\u3089\u306efork\u3059\u308b\u306e\u306f\u5b89\u5168\u304b\uff1f (2) \u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u306e\u5834\u5408 - \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 - memologue\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"title":" \u30b7\u30b0\u30ca\u30eb\u30cf\u30f3\u30c9\u30e9\u304b\u3089\u306efork\u3059\u308b\u306e\u306f\u5b89\u5168\u304b\uff1f (2) \u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u306e\u5834\u5408 - \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9","version":"1.0","author_name":"yupo5656","url":"https://yupo5656.hatenadiary.org/entry/20040911/p4","published":"2004-09-11 00:00:03","type":"rich"}