标签:参考 blog 调用 java read i/o模型 for 同步 str
一个IO操作涉及两个系统对象:
一个具体的Read操作包括两个阶段:
只有在同步的情况下才会有“阻塞”和“非阻塞”之说,异步情况,必须是非阻塞的!
同步与异步是针对应用程序与内核的交互而言的,进程/线程触发IO操作后:
同步 Synchronous
A Synchronous-I/O operation causes the requesting process to be blocked until that I/O operation completes.
串行,无条件等待。
异步 Asynchronous
An Asynchronous-I/O operation does not cause the requesting process to be blocked.
并发,
关于阻塞/非阻塞,在网络编程中通常应用在是不是需要等待数据就绪。
阻塞 Blocking
挂起等待,
非阻塞 Non-Blocking
轮询检查等待,
阻塞I/O(Blocking I/O)
非阻塞I/O(Non-Blocking I/O)
I/O多路复用(I/O Multiplexing)
信号驱动I/O(Signal Driven I/O)
异步I/O(Asynchronous I/O)
推荐书籍:
参考:
标签:参考 blog 调用 java read i/o模型 for 同步 str
原文地址:http://www.cnblogs.com/wjcx-sqh/p/6002454.html