博客
关于我
Java 开发必备! I/O与Netty原理精讲
阅读量:132 次
发布时间:2019-02-26

本文共 1222 字,大约阅读时间需要 4 分钟。

I/O??????????????????????????????BIO/NIO/AIO?????Java?????????????????I/O?????????????????Netty????????

??Java I/O??

1. BIO?Blocking IO?

BIO?Java?????I/O????????????????????????????????????BIO??accept?read??????????????????accept???????????????read?????????????????????????????????????????????????????????

2. NIO?Non Blocking IO?

NIO?Java 1.4???????????????????????????????????????????Selector???????????Selector??????I/O?????????????????NIO??????????

  • Buffer??????????????????????????
  • Channel???????????????
  • Selector???????????Channel?I/O???

Epoll?Linux???????????????????????

3. AIO?NIO 2.0?

AIO?Java NIO 2.0??????????NIO???AIO?????????????????????????????????AIO????????????????????????????

??I/O????

1. ??I/O??

??????????????->??->??->??->??????????????????????????????????????????????????????????????

2. Reactor??

Reactor??????????????????I/O???????????Reactor???????????

  • ??????Reactor??????????Handler??Selector?
  • ???????????Selector???????????
  • ??????????Reactor??????????

Reactor???NIO?????????????????

??Netty????

Netty???Reactor???????????????????????????????

  • ??????BossGroup?WorkerGroup????????????????
  • ChannelPipeline?????????????????
  • ChannelHandler????????????????????

Netty???????????????????I/O????????????????

转载地址:http://xewy.baihongyu.com/

你可能感兴趣的文章
Pinia入门(快速上手)
查看>>
Pinia:$patch的使用场景
查看>>
Pinia:$subscribe()的使用场景
查看>>
Pinpoint对Kubernetes关键业务模块进行全链路监控
查看>>
Pinterest 大规模缓存集群的架构剖析
查看>>
pintos project (2) Project 1 Thread -Mission 1 Code
查看>>
PinYin4j库的使用
查看>>
PIP
查看>>
pip install goose-extractor // SyntaxError: Missing parentheses in call to 'print'
查看>>
pip install mysqlclient报错
查看>>
pip install 出现报asciii码错误的解决
查看>>
pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding‘ 在尝试安装新软件包时
查看>>
pip 下载慢
查看>>
pip 升级报错AttributeError: ‘NoneType’ object has no attribute ‘bytes’
查看>>
pip 安装opencv-python卡死
查看>>
pip 安装出现异常
查看>>
Pip 安装失败:需要 SSL
查看>>
Pip 安装挂起
查看>>
pip 或 pip3 为 Python 3 安装包?
查看>>
pip 文件损坏导致 pip无法使用 报错 ImportError: cannot import name 'main' from 'pip._int
查看>>