本文介绍了常规文件读取是否可以从非阻塞IO中受益?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对我而言似乎并没有找到支持我意见的。你怎么看?
It seems not to me and I found a link that supports my opinion. What do you think?
推荐答案
你发布的链接内容是正确的。在非阻塞模式下打开的常规文件套接字将始终准备好进行读取;当你真正尝试阅读它时,阻塞(或更准确地说,你的来源指出,睡觉)将会发生,直到操作成功。
The content of the link you posted is correct. A regular file socket, opened in non-blocking mode, will always be "ready" for reading; when you actually try to read it, blocking (or more accurately as your source points out, sleeping) will occur until the operation can succeed.
无论如何,我认为你的来源需要一些镇静剂。一个愤怒的人,就是这样。
In any case, I think your source needs some sedatives. One angry person, that is.
这篇关于常规文件读取是否可以从非阻塞IO中受益?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!