2018.09即时通讯 总结 - gmtalang/test GitHub Wiki

* *### . NIO和NIO2所具备的超能力: **

  • http://www.importnew.com/2000.html
  • . 变更通知(因为每个事件都需要一个监听者)WatcherService WatcherKey
  • . 选择器和异步IO:通过选择器来提高多路复用
  • . 通道——承诺与现实
  • . 内存映射——好钢用在刀刃上
  • . 字符编码和搜索

Netty单线程和多线程模型