摘要: selectors模块 此模块允许基于选择模块原语构建高级别和高效的I / O多路复用。 鼓励用户使用此模块,除非他们想要精确控制使用的os级别的原语。 注:selectors也是包装了select高级的包装内置函数,它包装了select与epoll,优先使用epoll windos内只支持sele 阅读全文
posted @ 2018-01-06 20:07 kevin.Xiang 阅读(1843) 评论(0) 推荐(0)
摘要: Python select Python的select()方法直接调用操作系统的IO接口,它监控sockets,open files, and pipes(所有带fileno()方法的文件句柄)何时变成readable 和writeable, 或者通信错误,select()使得同时监控多个连接变的简 阅读全文
posted @ 2018-01-06 19:49 kevin.Xiang 阅读(2868) 评论(0) 推荐(0)