BIO&NIO&AIO&Netty
2023-01-27 11:11:10 24 举报
IO模型
作者其他创作
大纲/内容
绑定
Selector
Thread
Channel
NIOEventLoop
Client
8080
step 1:select
step 2:processSelectorKeys
Server
TaskQueue
ChannelHandler
SocketChannel
Channel Pipeline
Netty
Channel与ChannelPipeline的关系
注册
ChannelHandlerContext
Worker Group
......
Accept
SelectionKey
pipline
Buffer
channel注册到Selector后,返回的SelectionKey与Channel绑定,SelectionKey被Selector持有
NIO
step 3:runAllTasks
客户端连接
NioEventLoop
Read/Write
Selector多路复用器
ServerSocketChannel
注册Channel到Selector
BIO
Boss Group
监听
0 条评论
回复 删除
下一页