
java
strive____
这个作者很懒,什么都没留下…
展开
-
Netty启动流程
NioEventLoopGroup:事件处理组,负责管理child线程NioEventLoop:单线程事件处理器,可NioEventLoopGroup管理,默认通过ThreadPerTaskExecutor初始化线程,延迟初始化NioEventLoop是真实的工作线程,它的run方法诠释了netty事件工作流程,内部默认采用LinkedBlockingQueue为存储队列初始化流程:ServerBootstrap.bind()是一切的开始ServerBootstrap.initAndRegis原创 2020-06-23 19:00:27 · 390 阅读 · 0 评论 -
动手实现lombok
转发自:https://juejin.im/post/5e8140afe51d4546cc26aa6d转载 2020-03-30 17:09:13 · 564 阅读 · 0 评论 -
排序算法学习笔记
排序算法学习笔记插入排序时间复杂度:O(N^2),空间:O(N)描述:向一个已经排序的串中插入值。public static void sort(int[] arr){ int length = arr.length; int j = 0; for (int p = 1; p < length; p++) { int tmp = arr[p]; for (j = p; ...原创 2019-12-30 10:04:01 · 112 阅读 · 0 评论