ãã®è¨äºã¯å ¨ç¶ãã¡ã ã£ãããã§ãã ãã¡ãã«æ°ããæ¸ãç´ãã¾ããã http://d.hatena.ne.jp/amachang/20080617/1213694238 ãããªæãã«ãªã£ã #include <stdio.h> #include <stdlib.h> #include <memory.h> #include <pthread.h> static int* q; static int n; // 次ã«å ¥ããã¤ã³ããã¯ã¹ static int l; // 次ã«åºãã¤ã³ããã¯ã¹ static int s; static pthread_mutex_t m; static pthread_cond_t c; void initQ (size_t size) { n = 0; l = 0; s = size; // ãã¥ã¼ã®é åç¢ºä¿ q = (int*)malloc(s * size
{{#tags}}- {{label}}
{{/tags}}