selector 监听 channel 的实现原理
2023-09-22 本文已影响0人
雨景江水
https://blog.csdn.net/weixin_43591980/article/details/121861850
https://blog.csdn.net/weixin_30611667/article/details/114205678
一. selector 监听 channel 的实现原理
Selector 通过不断轮询的方式同时监听多个 Channel 的事件,
其实就是Selector 死循环去查看 各个 Channel 有没有数据