2017年4月24日

生产者,消费者 多线程

摘要: #include #include #include #include const size_t SIZE = 10; using ElemTy = char; ElemTy arr[SIZE]; size_t begin = 0; size_t end = 0; std::mutex prdc_m; std::mutex cnsm_m; void produce() { ... 阅读全文

posted @ 2017-04-24 22:45 jjtx 阅读(161) 评论(0) 推荐(0) 编辑

导航