Java
229 篇笔记
- 2.94 2.3AnnotationAwareAspectJAutoProxyCreator具体是怎么创建代理对象的historical
本文沿目标 Bean 的创建过程追踪自动代理创建器,观察 Spring 如何检查切面并生成代理对象。
- 2.97 PooledByteBufAllocatorhistorical
PooledByteBufAllocator 先获取线程缓存和对应的 PoolArena,再通过 PoolArena 分配内存。笔记沿这两个阶段追踪实现。
- 2.98 PoolThreadCachehistorical
PoolThreadCache 为不同大小的内存区域创建缓存。笔记查看 tiny、small 和 normal 三类 MemoryRegionCache 的初始化。
- 3.2 BIO实现的多线程服务器historical
BIO实现的多线程服务器:服务端编程,传统的情况是使用BIO。 但是使用这种会有两个阻塞点:ServerSocket.accept()和InputStream.read(),因此单线程只能服务一个客户端。