Loading

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

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.

image-20210312235831798

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

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

image-20210313000118516

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.

image-20210313000230256

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.

image-20210313000318266

posted @ 2021-03-13 00:27  齐玉  阅读(45)  评论(0)    收藏  举报