10 2021 档案
摘要:哲学家进餐问题的mutex解法 筷子的数据结构 typedef struct chopstick { pthread_mutex_t mtx; char* whoami; } chopstick_t; chopstick_t* chopstick_get(char const* const str)
阅读全文
摘要:#include <iostream> #include <thread> #include <string> #include <vector> #include <memory> #include <algorithm> #include <numeric> #include <random>
阅读全文

浙公网安备 33010602011771号