常规文件读取是否可以从非阻塞IO中受益?

编程入门 行业动态 更新时间:2024-10-22 02:40:35
本文介绍了常规文件读取是否可以从非阻塞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中受益?

本文发布于:2023-11-09 05:48:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1571543.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:常规   文件   IO

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!