![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络
连翩西北驰
明天会更美好
展开
-
UNIX网络I/O模型
阻塞I/O Socket设置为阻塞模式,当socket不能立即完成I/O操作时,进程或线程进入等待状态,直到操作完成。如下图: 这种模型非常经典,也被广泛使用,优势在于非常简单,等待的过程中占用的系统资源微乎其微,程序调用返回时,必定可以拿到数据; 但简单也带来一些缺点,程序在数据到来并准备好以前,不转载 2012-05-31 17:49:53 · 1011 阅读 · 0 评论 -
C#实现IOCP
using System; using System.Threading; // Included for the Thread.Sleep call using Continuum.Threading; namespace Sample { //============================================ /// Sample class for转载 2012-05-25 16:11:49 · 956 阅读 · 0 评论