what's the difference between async i/o (or socket)and non block i/o
They are very different, as follows:. AIO is "asynchronous I/O", i.e., the operation is invoked
asynchronously and control returns to the client while the OS kernel
processes the I/O request.When the operation completes there is
some mechanism for the client to retrieve the results.
. Non-blocking I/O tries an operation (such as a read() or write())
and if it the operation would block (e.g., due to flow control on a
TCP connection or due to lack of data in a socket), the call returns
-1 and sets errno to EWOULDBLOCK.
Dr. Douglas C. Schmidt
页:
[1]