摘要:
启动ServerBootstrap时,由main(启动线程)初始化bossGroup和childGroup,启动boss NioEventloop对应的thread,将NioServerSocketChannel(监听的端口)注册任务添加到该NioEventloop的taskQueue。线程启动后监 阅读全文
摘要:
NioEventLoop.run select处理IO事件(boss/worker)流程:processSelectedKeysprocessSelectedKeysOptimizedprocessSelectedKey以read为例:unsafe.read()NioServerSocketChan 阅读全文