{"published":"2008-06-11 15:22:44","url":"https://amachang.hatenablog.com/entry/20080611/1213165364","provider_url":"https://hatena.blog","height":"190","image_url":null,"width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Famachang.hatenablog.com%2Fentry%2F20080611%2F1213165364\" title=\" pthread \u3067\u30ad\u30e5\u30fc\u3092\u66f8\u3044\u3066\u307f\u308b - IT\u6226\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://amachang.hatenablog.com/","blog_title":"IT\u6226\u8a18","categories":["C++"],"author_name":"amachang","type":"rich","description":"\u3053\u306e\u8a18\u4e8b\u306f\u5168\u7136\u30c0\u30e1\u3060\u3063\u305f\u3088\u3046\u3067\u3059\u3002 \u3053\u3061\u3089\u306b\u65b0\u3057\u304f\u66f8\u304d\u76f4\u3057\u307e\u3057\u305f\u3002 http://d.hatena.ne.jp/amachang/20080617/1213694238 \u3053\u3093\u306a\u611f\u3058\u306b\u306a\u3063\u305f #include <stdio.h> #include <stdlib.h> #include <memory.h> #include <pthread.h> static int* q; static int n; // \u6b21\u306b\u5165\u308c\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9 static int l; // \u6b21\u306b\u51fa\u3059\u30a4\u30f3\u30c7\u30c3\u30af\u30b9 static int s; static pthread_mutex_t m; static pthrea\u2026","provider_name":"Hatena Blog","version":"1.0","title":" pthread \u3067\u30ad\u30e5\u30fc\u3092\u66f8\u3044\u3066\u307f\u308b","author_url":"https://blog.hatena.ne.jp/amachang/"}