netty explain the basics

EventLoopGroup represents the thread pool, EventLoop indicates that the thread, channel representation (connected client and server) channel

EventLoopGroup comprising EventLoop, comprising a EventLoop a Selector, a channel can handle multiple Selector

new NioEventLoopGroup () to create a default number of thread pool threads are cpu systems audit * 2

Guess you like

Origin www.cnblogs.com/moris5013/p/12113364.html