lessen-io/nio/netty系列
2020-12-30 11:31:05 0 举报
io/nio/netty对比
作者其他创作
大纲/内容
handler1
service
string decodeutf8
handlerServerBootstrapAcceptor
l
listener1
pipeline
io阻塞read
port
work cachei= 10i=11
client
channel
+1
llo
boss thread
servie
thread1
空
listen
send msg
he
discardabl
thread2
selectionkey
op_readable
handler
child
client1
0h
handler2
2l
read
socket.accept();
future
serverSocketChannel
6
op_writable
3l
有
decode
4o
1e
listener2future.get()
event loop group1
新建线程处理
register
readerindex
op_accept
worker thread1
5
childHandler
worker thread2
run
create
http parse
limit
deep copy
CAS:Compare and Swap
work cachei= 10i=11+1=12
main thread
http encode
selectorop_readable
h
socket
e
pipeline2
io阻塞write
event loop group2
other thread
handlerdecode
write
capacity
pipeline3
memeryatomicInteget i = 10i=11i = 12
socketChannel
request
init
string encodeutf8
stream是否有数据
serverBootstrap
hello
selectorop_accept
memeryint i = 10i=11i =11
new channel
work cachei= 10i = 11
main()
pipeline1
selector
boss
阻塞
position
o
0 条评论
下一页