1. 概述 HashMap 底層的數(shù)據(jù)結(jié)構(gòu)主要是:數(shù)組 + 鏈表 + 紅黑樹卿城。其中當(dāng)鏈表的長度大于等于 8 時(shí)筷屡,鏈表會(huì)轉(zhuǎn)化成紅黑樹兵志,當(dāng)紅黑樹的大...
1 概述 ArrayList 整體架構(gòu)比較簡單,就是一個(gè)數(shù)組結(jié)構(gòu)比如:長度為10的數(shù)組悲敷,從1開始計(jì)數(shù)馁龟,index表示數(shù)組的下標(biāo),從0開始計(jì)數(shù)傀缩, ...
runAllTasks() fetchFromScheduledTaskQueue() pollScheduledTask()
NioEventLoop.run() select() DefaultSelectStrategy.calculateStrategy() se...
FastThreadLocalThread 變量InternalThreadLocalMap InternalThreadLocalMap繼承U...
submit() 調(diào)用execute() execute(Runnable command) 超過size也不會(huì)增加worker 循環(huán)獲取tas...
build RedirectExec ProtocolExec MainClientExec HttpRequestExecutor Defau...
DefaultChannelPipeline.flush() 調(diào)用unsafe AbstractChannel.flush() 調(diào)用outbou...
AbstractNioByteChannel.read() DefaultMaxBytesRecvByteBufAllocator Adapti...