摘要:
#include <bits/stdc++.h> #include <mutex> #include <windows.h> using namespace std; mutex m; //定义互斥信号量 condition_variable cond1, cond2; int cur = 1; / 阅读全文
posted @ 2023-09-05 15:24
SuperTonyy
阅读(12)
评论(0)
推荐(0)
摘要:
1 #include <bits/stdc++.h> 2 #include <mutex> 3 using namespace std; 4 #define maxn 10 5 mutex m; 6 condition_variable full_con; //缓冲池已满,让full_con等待 7 阅读全文
posted @ 2023-09-05 15:24
SuperTonyy
阅读(260)
评论(0)
推荐(0)
摘要:
1 #include <bits/stdc++.h> 2 #include <unordered_map> 3 using namespace std; 4 class Cache { 5 private: 6 int maxlen; //缓存大小 7 unordered_map< int, pai 阅读全文
posted @ 2023-09-05 11:56
SuperTonyy
阅读(130)
评论(0)
推荐(0)

浙公网安备 33010602011771号