首页 > 其他 > 详细

Before Tomcat EndPoint: Stream I/O vs Channel I/O

时间:2021-03-13 09:01:27      阅读:24      评论:0      收藏:0      [点我收藏+]

Before Tomcat EndPoint: Stream I/O vs Channel I/O

Stream I/O is a native model for data transfer. It is describe the metadata(byte/char) flow. It involves electronic communicate.

Channel I/O is based on Stream I/O. It seems like a wrapper on Stream. A wrapper refers to the Buffer. It also need an extra special hardware to implement the logic concept —— Channel.

We can see some features in the chart.

技术分享图片

We can see the evolution about I/O architecture design.

CPU controls the I/O interface. Waste performance to much.

技术分享图片

DMA get the auth to process I/O interface. Too much I/O request lead the DMA request the CPU auth to process too much, it also waste too mucn performance.

技术分享图片

Through Channel to manage the I/O interface. Channel is a indepent unit. It is controlled by our instructions or our programs. It doesn‘t need CPU to involve.

技术分享图片

Before Tomcat EndPoint: Stream I/O vs Channel I/O

原文:https://www.cnblogs.com/c72dfa/p/14527221.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!