摘要: #include <stdio.h> #include <unistd.h> #include <pthread.h> int tickets=1000; pthread_mutex_t mutex; void* sellticket(void*arg){ //加锁 while(1){ pthrea 阅读全文
posted @ 2021-05-15 15:28 诗和远方* 阅读(113) 评论(0) 推荐(0) 编辑