2020年9月26日

Windows 实现 生产者消费者

摘要: #include <windows.h> #include <iostream> #include<cstdio> const unsigned short BUF_SIZE = 10; ///缓冲区长度 unsigned short ProductID = 0; ///产品号 unsigned s 阅读全文

posted @ 2020-09-26 23:01 回形针的迷宫 阅读(226) 评论(0) 推荐(0) 编辑

C++实现生产者消费者

摘要: 条件变量 相关问题: [c++11]多线程编程(六)——条件变量(Condition Variable)// producer_consumer.cpp ////////////////////////////////////////////////////////////////////// // 阅读全文

posted @ 2020-09-26 21:25 回形针的迷宫 阅读(379) 评论(0) 推荐(0) 编辑

生产者消费者问题 C++实现

摘要: 1 // operator_system.cpp: 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include<iostream> 6 #include <mutex> 7 #include <condition_variable> 8 #inclu 阅读全文

posted @ 2020-09-26 21:08 回形针的迷宫 阅读(397) 评论(0) 推荐(0) 编辑

导航