摘要: 原子操作:不可分割的操作 原子:不可分割的最小单位 原子操作的作用:解决竞争和冲突 功能:复制一个文件描述符 dup:不是原子操作 dup2:是原子操作 If oldfd is not a valid file descriptor, then the call fails, and newfd i 阅读全文
posted @ 2016-03-11 16:40 muzihuan 阅读(210) 评论(0) 推荐(0) 编辑