随笔分类 -  操作系统

摘要:Windows线程/进程间通信的方式 STL不支持线程安全 原子访问 同一时刻只允许一个线程访问资源(变量) InterlockDecrement(); // 将变量-1, 同一个时刻只允许一个线程执行 volatile:防止编译器优化, 从内存中读取数据 int i = 10; int j = i 阅读全文
posted @ 2020-08-16 20:31 x_Aaron 阅读(270) 评论(0) 推荐(0)
摘要:select、pool、epoll多路IO复用 https://blog.csdn.net/wteruiycbqqvwt/article/details/90299610 https://blog.csdn.net/nanxiaotao/article/details/90612404 select 阅读全文
posted @ 2020-08-16 17:02 x_Aaron 阅读(259) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/tobe98/archive/2019/10/13/11664779.html https://blog.csdn.net/zxc024000/article/details/78972283 https://blog.csdn.net/winterf 阅读全文
posted @ 2020-08-15 14:49 x_Aaron 阅读(357) 评论(0) 推荐(0)