摘要: #include#includepthread_mutex_t mutex;#define Max 10pthread_cond_t pro;pthread_cond_t con;int buffer=0;//... 阅读全文
posted @ 2015-08-01 14:13 cloudren2020 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 想到两种方法-1.用空格覆盖所有内容(有问题,内容全变成空格) int fd=open(filename,O_RDWR) struct stat stBuf; stat(filename,&stBu... 阅读全文
posted @ 2015-08-01 13:56 cloudren2020 阅读(127) 评论(0) 推荐(0) 编辑