高性能IO之Reactor模式

The reactor design pattern is an event handling pattern for handling service requests delivered concurrently by one or more inputs. The service handler then demultiplexes the incoming requests and dispatches them synchronously to associated request handlers.

单线程模式

1

多线程模式

1:n

主从模式

n:n

netty采用了主从模式

ref:

https://www.cnblogs.com/doit8791/p/7461479.html

https://www.jianshu.com/p/128ddc36e713

https://www.jianshu.com/p/38b56531565d

https://blog.csdn.net/qq924862077/article/details/53316490

高性能io

https://www.cnblogs.com/fanzhidongyzby/p/4098546.html

https://www.jianshu.com/p/2965fca6bb8f

https://mp.weixin.qq.com/s/L5UJhJqquM7OQYFu648JSw

原文地址:https://www.cnblogs.com/huilei/p/9856456.html