摘要:
多进程并发服务器实现 服务端实现 #include <iostream> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/wait.h> #include <cerrno> #inclu 阅读全文
posted @ 2024-04-03 13:59
杨谖之
阅读(23)
评论(0)
推荐(0)
摘要:
条件变量实现生产者消费者模型 一个生产者一个消费者模型 #include <iostream> #include <unistd.h> #include <pthread.h> #include <deque> using namespace std; deque<int> msg; pthread 阅读全文
posted @ 2024-04-03 13:54
杨谖之
阅读(18)
评论(0)
推荐(0)

浙公网安备 33010602011771号