左边的对等层完成两个套接字的写操作,每个100字节。
The peer on the left performs two socket writes of 100 bytes each.
该操作所需时间比4096字节占用一个扇区时所需时间多。
This operation takes longer than when the 4096 bytes occupy a single sector.
这是因为大多数套接字操作都是异步地进行的,其中套接字进行轮询以检查数据是否出现,而不是使得应用程序处于阻塞(等待)状态以等待响应。
This is because most socket operations are made asynchronously in that the socket is polled to see if data is present rather than having the application block (wait) for the response.
应用推荐