BIO VS NIO

CONTENT


WHAT IS IO?

WHAT IS BLOCK IO

WHAT IS NON BLOCK IO

THE DIFFERENCE BETWEEN IN BLOCK IO AND NON -BLOCK IO


WHAT IS IO

In computer ,the term I/O is short for "Input/Output" , which refers to the transfer of data either to or

 from a computer application. A keyboard acts as an input device ,transferring whatever you type into the computer, while a monitor or printer would be an example of an output device, since they present the transferred data to the user. Blocking  I/O plays a key role in the entire process ,helping manage the flow of input and output data. NON Blocking I/O  is too. They are synchronouse IO (there is also have asynchronous  IO).

            WHAT IS BLOCKING I/O

Above mention that .the Blocking I/O ,sometimes referred to as synchronous I/O, blocks the data transfer process until the accessed driver can meet the desired request. For example , if you input a call to read a drive when there is no data present, blocking I/O puts the process to sleep until there's available to read. Once the drive can fulfill the request,  the process awakens and completes the command. Blocking I/O plays the same role if you attempt to write to a drive before it has enough available buffer space, halting the process until the necessary space becomes available.

       WHAT IS NON-BLOCKING I/O

Non-Blocking I/O  Unlike blocking I/O, which halts a process until the full request can be met,non-blocking I/O may fulfill the request in segments.

THE DIFFERENCE BETWEEN IN BLOCK IO AND NON -BLOCK IO

       For instance, if the requested data isn't available in ites entirety when called, a non-blocking I/O retrieves all available data and the returns it,

alerting the user the entire request wasn't fulfilled. The non-blocking I/O then continues to loop back and gather more information until completing the desired request. While more difficult to code than blocking I/O, non-blocking I/O provides more power and permits other processes to continue while completing the

original data transmission.



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值