摘要: #include"stdio.h" #include"pthread.h" #include"semaphore.h" static int datbuf[10] = {0}; static int n; sem_t sem1,sem2,sem3; void *do_input(void *pvoid) { int i; sem_wait(&sem1); ... 阅读全文
posted @ 2016-05-24 16:20 我有一壶酒 阅读(1882) 评论(0) 推荐(0) 编辑