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