主题索引
过载保护与优雅降级
比较限流、减载、退避重试、分级依赖与防御成本的过载应对手段。
来源书籍
尚未完成类别清单核对。
执行模式:light 本次执行规则:book-notes v23 / book-workflow v4(原历史规则记录保留) 建档进度:done
整书笔记:325项逐段讲解、191卡主要位置及真实出处。
类别:编程语言类
本次实际使用规则:book-notes v8(2026-09-24 补做主题索引维护,卡片正文未改动),详见 _workflow.md v8 升级记录。
四象限结论:经典原理(高信息浓度 + 高稳定性)
支撑理由: 本书虽然以 Java 线程、JUC 和若干具体 API 为载体,但主线不是简单罗列调用方法,而是解释高并发编程中的根本约束和底层机制:线程池为何不能无界排队、线程数为何要区分 IO 密集型和 CPU 密集型任务、synchronized 如何依赖对象头与锁升级、CAS 的性能边界为何会引出 LongAdder、volatile 与 JMM 如何解决可见性和有序性、AQS 如何用模板方法和同步队列支撑显式锁。后半部分还把 Master-Worker、ForkJoin、生产者-消费者、Future、异步回调和 CompletableFuture 放到并发协作模型中理解。书中存在部分 JDK 版本和类库 API 细节,但这些细节服务于可迁移的并发原理,因此整体归为“经典原理”。
| 章节号 | 章节标题 | 精读/略读 | 状态(pending/done) | 卡片数 |
|---|---|---|---|---|
| 1 | 多线程原理与实战 | 精读:线程生命周期、线程池、线程数估算和 ThreadLocal 都是 Java 并发的底座;S4 补中断标志、拒绝策略。V10 已逐项回读本章,新增进程、线程、任务执行、线程池与 ThreadLocal 基础等三十五卡;准确性问题留 S3 复核。 | done | 42 |
| 2 | Java内置锁的核心原理 | 精读:V10 已逐项回读本章,新增对象锁作用域、拆锁前提、类锁区别、对象布局、旧版锁记录、监视器等待和丢失通知等九卡;书中多个锁示例及版本断言留 S3 审查。 | done | 15 |
| 3 | CAS原理与JUC原子类 | 精读:V10 已逐项回读本章,新增 CAS 重试、原子类选型、数组与引用的原子边界、布尔标记历史信息及 LongAdder 结构协调等六卡;书中 ABA、API 和性能叙述的问题留 S3 复核。 | done | 11 |
| 4 | 可见性与有序性的原理 | 精读:CPU 缓存、MESI、内存屏障、JMM 和 Happens-Before 是并发正确性的核心;V10 已逐项回读全章,补可见性、顺序和发布协议边界卡,书中 JMM 规则与硬件实现叙述待 S3 复核。 | done | 10 |
| 5 | JUC显式锁的原理与实战 | 精读:LockSupport、CLH、自旋锁、读写锁和 StampedLock 展示显式锁的取舍;V10 已逐项回读本章全部 spine #157–#185,新增锁竞争成本、公平策略边界、AB-BA 循环等待、ThreadMXBean 检测范围及读写锁转换卡;Condition 顺序、伪唤醒、中断状态、实现边界及硬件性能概括留 S3 复核。 | done | 15 |
| 6 | AQS抽象同步器的核心原理 | 精读:AQS 是 JUC 同步器的共同骨架,源码流程值得形成长期卡片;V10 已逐项回读 spine #186–#232,卡片覆盖状态、节点、模板、入队、出队、释放、公平获取与 Condition 等待恢复。 | done | 18 |
| 7 | JUC容器类 | 精读:CopyOnWrite、BlockingQueue、ConcurrentHashMap 体现并发容器的不同设计策略。 | done | 26 |
| 8 | 高并发设计模式 | 精读:单例、Master-Worker、ForkJoin、生产者-消费者、Future 是可迁移的并发结构;V10 已逐项回读至 #279,Future 契约由既有卡承接,示例耗时前提留 S3 核验。 | done | 23 |
| 9 | 高并发核心模式之异步回调模式 | 精读:主动获取结果与回调反转控制流,是异步系统设计的重要分界;V10 已逐项回读至 #301,#288 记录结果门控、#291 记录 FutureCallback 成功/失败分支、#292 记录 ListenableFuture 监听接口分层;#289 总结、#290 Guava 导言及 #293 执行器适配由既有卡承接;#294 新增并行回调汇合的一次性风险卡;#295 的主动 FutureTask 与回调对比由既有卡承接;#296–#297 的 Netty/Guava 接口角色和参数形态由《框架回调接口的角色映射》承接;#298 新增 Netty Future 状态与可取消性区分卡;#299 的 ChannelFuture 完成通知、状态与失败原因由既有《Netty监听IO完成》《Netty结果补监听》承接;#300 的出站 write() 完成监听由既有《Netty监听IO完成》承接;EchoServer 粘包/半包症状新增《发送次数不等于回写条数》,不扩写本节未给出的解决方案。#301 总结段由现有主动调用与回调卡承接;get() 异常边界及 Future/Listener 精确契约与执行器语义留 S3 核查。 | done | 14 |
| 10 | CompletableFuture异步回调 | 精读:CompletionStage 链式编排是 Java 8 后表达异步流程的核心工具;V10 #302–#303 导言由《Future先给契约》《回调反转方向》《阶段表达流水线》承接;#304 补 CompletableFuture 同时实现 Future 与 CompletionStage 的类关系卡;#305 核对同步/异步阶段定义、三类任务输入输出与链式执行边界,并据原文修订《阶段表达流水线》;#306 新增《用返回契约选异步工厂》,区分 runAsync 与 supplyAsync 的任务/结果契约,公共池风险由既有卡承接;#307 新增《观察与恢复分开》《取消进入异常完成》,补完成观察/异常恢复契约及异常包装差异;#317–#327的编排方法及CompletableFuture案例由新旧卡承接;#328新增《上下游调度各有边界》,RxJava模型与版本契约留S3核验。 | done | 17 |
本轮复用已核验的325项历史阅读覆盖,逐项讲解统一见整书笔记;以下保留真实计划与计数。
| 章节号 | 章节标题 | 状态(pending/done) | 卡片数 |
|---|---|---|---|
| 4 | 前言(OEBPS/Text/chapter.xhtml) |
done | 0 |
| 5 | 自序(OEBPS/Text/chapter1.xhtml) |
done | 0 |
| 6 | 第1章 多线程原理与实战(OEBPS/Text/chapter2.xhtml) |
done | 0 |
| 7 | 1.1 两个技术面试故事(OEBPS/Text/chapter3.xhtml) |
done | 0 |
| 8 | 1.2 无处不在的进程和线程(OEBPS/Text/chapter4.xhtml) |
done | 1 |
| 9 | 1.2.1 进程的基本原理(OEBPS/Text/chapter5.xhtml) |
done | 1 |
| 10 | 1.2.2 线程的基本原理(OEBPS/Text/chapter6.xhtml) |
done | 2 |
| 11 | 1.2.3 进程与线程的区别(OEBPS/Text/chapter7.xhtml) |
done | 0 |
| 12 | 1.3 创建线程的4种方法(OEBPS/Text/chapter8.xhtml) |
done | 0 |
| 13 | 1.3.1 Thread类详解(OEBPS/Text/chapter9.xhtml) |
done | 2 |
| 14 | 1.3.2 创建一个空线程(OEBPS/Text/chapter10.xhtml) |
done | 0 |
| 15 | 1.3.3 线程创建方法一:继承Thread类创建线程类(OEBPS/Text/chapter11.xhtml) |
done | 0 |
| 16 | 1.3.4 线程创建方法二:实现Runnable接口创建线程目标类(OEBPS/Text/chapter12.xhtml) |
done | 1 |
| 17 | 1.3.5 优雅创建Runnable线程目标类的两种方式(OEBPS/Text/chapter13.xhtml) |
done | 1 |
| 18 | 1.3.6 通过实现Runnable接口的方式创建线程目标类的优缺点(OEBPS/Text/chapter14.xhtml) |
done | 2 |
| 19 | 1.3.7 线程创建方法三:使用Callable和FutureTask创建线程(OEBPS/Text/chapter15.xhtml) |
done | 2 |
| 20 | 1.3.8 线程创建方法四:通过线程池创建线程(OEBPS/Text/chapter16.xhtml) |
done | 2 |
| 21 | 1.4 线程的核心原理(OEBPS/Text/chapter17.xhtml) |
done | 0 |
| 22 | 1.4.1 线程的调度与时间片(OEBPS/Text/chapter18.xhtml) |
done | 1 |
| 23 | 1.4.2 线程的优先级(OEBPS/Text/chapter19.xhtml) |
done | 2 |
| 24 | 1.4.3 线程的生命周期(OEBPS/Text/chapter20.xhtml) |
done | 1 |
| 25 | 1.4.4 一个线程状态的简单演示案例(OEBPS/Text/chapter21.xhtml) |
done | 0 |
| 26 | 1.4.5 使用Jstack工具查看线程状态(OEBPS/Text/chapter22.xhtml) |
done | 1 |
| 27 | 1.5 线程的基本操作(OEBPS/Text/chapter23.xhtml) |
done | 0 |
| 28 | 1.5.1 线程名称的设置和获取(OEBPS/Text/chapter24.xhtml) |
done | 1 |
| 29 | 1.5.2 线程的sleep操作(OEBPS/Text/chapter25.xhtml) |
done | 1 |
| 30 | 1.5.3 线程的interrupt操作(OEBPS/Text/chapter26.xhtml) |
done | 2(含历史1) |
| 31 | 1.5.4 线程的join操作(OEBPS/Text/chapter27.xhtml) |
done | 1 |
| 32 | 1.5.5 线程的yield操作(OEBPS/Text/chapter28.xhtml) |
done | 1 |
| 33 | 1.5.6 线程的daemon操作(OEBPS/Text/chapter29.xhtml) |
done | 2(含历史1) |
| 34 | 1.5.7 线程状态总结(OEBPS/Text/chapter30.xhtml) |
done | 0 |
| 35 | 1.6 线程池原理与实战(OEBPS/Text/chapter31.xhtml) |
done | 0 |
| 36 | 1.6.1 JUC的线程池架构(OEBPS/Text/chapter32.xhtml) |
done | 1 |
| 37 | 1.6.2 Executors的4种快捷创建线程池的方法(OEBPS/Text/chapter33.xhtml) |
done | 1 |
| 38 | 1.6.3 线程池的标准创建方式(OEBPS/Text/chapter34.xhtml) |
done | 1 |
| 39 | 1.6.4 向线程池提交任务的两种方式(OEBPS/Text/chapter35.xhtml) |
done | 2(含历史1) |
| 40 | 1.6.5 线程池的任务调度流程(OEBPS/Text/chapter36.xhtml) |
done | 0 |
| 41 | 1.6.6 ThreadFactory(线程工厂)(OEBPS/Text/chapter37.xhtml) |
done | 1 |
| 42 | 1.6.7 任务阻塞队列(OEBPS/Text/chapter38.xhtml) |
done | 1 |
| 43 | 1.6.8 调度器的钩子方法(OEBPS/Text/chapter39.xhtml) |
done | 1 |
| 44 | 1.6.9 线程池的拒绝策略(OEBPS/Text/chapter40.xhtml) |
done | 1(历史) |
| 45 | 1.6.10 线程池的优雅关闭(OEBPS/Text/chapter41.xhtml) |
done | 1 |
| 46 | 1.6.11 Executors快捷创建线程池的潜在问题(OEBPS/Text/chapter42.xhtml) |
done | 1(历史) |
| 47 | 1.7 确定线程池的线程数(OEBPS/Text/chapter43.xhtml) |
done | 0 |
| 48 | 1.7.1 按照任务类型对线程池进行分类(OEBPS/Text/chapter44.xhtml) |
done | 0 |
| 49 | 1.7.2 为IO密集型任务确定线程数(OEBPS/Text/chapter45.xhtml) |
done | 1(历史) |
| 50 | 1.7.3 为CPU密集型任务确定线程数(OEBPS/Text/chapter46.xhtml) |
done | 1(历史) |
| 51 | 1.7.4 为混合型任务确定线程数(OEBPS/Text/chapter47.xhtml) |
done | 0 |
| 52 | 1.8 ThreadLocal原理与实战(OEBPS/Text/chapter48.xhtml) |
done | 0 |
| 53 | 1.8.1 ThreadLocal的基本使用(OEBPS/Text/chapter49.xhtml) |
done | 1 |
| 54 | 1.8.2 ThreadLocal的使用场景(OEBPS/Text/chapter50.xhtml) |
done | 2(含历史1) |
| 55 | 1.8.3 使用ThreadLocal进行线程隔离(OEBPS/Text/chapter51.xhtml) |
done | 0 |
| 56 | 1.8.4 使用ThreadLocal进行跨函数数据传递(OEBPS/Text/chapter52.xhtml) |
done | 0 |
| 57 | 1.8.5 ThreadLocal内部结构演进(OEBPS/Text/chapter53.xhtml) |
done | 1 |
| 58 | 1.8.6 ThreadLocal源码分析(OEBPS/Text/chapter54.xhtml) |
done | 0 |
| 59 | 1.8.7 ThreadLocalMap源码分析(OEBPS/Text/chapter55.xhtml) |
done | 1(历史) |
| 60 | 1.8.8 ThreadLocal综合使用案例(OEBPS/Text/chapter56.xhtml) |
done | 0 |
| 61 | 第2章 Java内置锁的核心原理(OEBPS/Text/chapter57.xhtml) |
done | 1 |
| 62 | 2.1 线程安全问题(OEBPS/Text/chapter58.xhtml) |
done | 0 |
| 63 | 2.1.1 自增运算不是线程安全的(OEBPS/Text/chapter59.xhtml) |
done | 1(历史) |
| 64 | 2.1.2 临界区资源与临界区代码段(OEBPS/Text/chapter60.xhtml) |
done | 1(历史) |
| 65 | 2.2 synchronized关键字(OEBPS/Text/chapter61.xhtml) |
done | 0 |
| 66 | 2.2.1 synchronized同步方法(OEBPS/Text/chapter62.xhtml) |
done | 0 |
| 67 | 2.2.2 synchronized同步块(OEBPS/Text/chapter63.xhtml) |
done | 1 |
| 68 | 2.2.3 静态的同步方法(OEBPS/Text/chapter64.xhtml) |
done | 1 |
| 69 | 2.3 生产者-消费者问题(OEBPS/Text/chapter65.xhtml) |
done | 0 |
| 70 | 2.3.1 生产者-消费者模式(OEBPS/Text/chapter66.xhtml) |
done | 1(历史) |
| 71 | 2.3.2 一个线程不安全的实现版本(OEBPS/Text/chapter67.xhtml) |
done | 0(复用历史卡) |
| 72 | 2.3.3 一个线程安全的实现版本(OEBPS/Text/chapter68.xhtml) |
done | 0(复用历史卡) |
| 73 | 2.4 Java对象结构与内置锁(OEBPS/Text/chapter69.xhtml) |
done | 0(过渡) |
| 74 | 2.4.1 Java对象结构(OEBPS/Text/chapter70.xhtml) |
done | 1 |
| 75 | 2.4.2 Mark Word的结构信息(OEBPS/Text/chapter71.xhtml) |
done | 0(历史承接) |
| 76 | 2.4.3 使用JOL工具查看对象的布局(OEBPS/Text/chapter72.xhtml) |
done | 0(已并入) |
| 77 | 2.4.4 大小端问题(OEBPS/Text/chapter73.xhtml) |
done | 1 |
| 78 | 2.4.5 无锁、偏向锁、轻量级锁和重量级锁(OEBPS/Text/chapter74.xhtml) |
done | 0(历史承接) |
| 79 | 2.5 偏向锁的原理与实战(OEBPS/Text/chapter75.xhtml) |
done | 0(历史承接) |
| 80 | 2.5.1 偏向锁的核心原理(OEBPS/Text/chapter76.xhtml) |
done | 0(历史承接) |
| 81 | 2.5.2 偏向锁的演示案例(OEBPS/Text/chapter77.xhtml) |
done | 0(历史承接) |
| 82 | 2.5.3 偏向锁的膨胀和撤销(OEBPS/Text/chapter78.xhtml) |
done | 0(历史承接) |
| 83 | 2.6 轻量级锁的原理与实战(OEBPS/Text/chapter79.xhtml) |
done | 0(过渡) |
| 84 | 2.6.1 轻量级锁的核心原理(OEBPS/Text/chapter80.xhtml) |
done | 1 |
| 85 | 2.6.2 轻量级锁的演示案例(OEBPS/Text/chapter81.xhtml) |
done | 0(已并入) |
| 86 | 2.6.3 轻量级锁的分类(OEBPS/Text/chapter82.xhtml) |
done | 0(历史承接) |
| 87 | 2.6.4 轻量级锁的膨胀(OEBPS/Text/chapter83.xhtml) |
done | 0(历史承接) |
| 88 | 2.7 重量级锁的原理与实战(OEBPS/Text/chapter84.xhtml) |
done | 0(下项展开) |
| 89 | 2.7.1 重量级锁的核心原理(OEBPS/Text/chapter85.xhtml) |
done | 1 |
| 90 | 2.7.2 重量级锁的开销(OEBPS/Text/chapter86.xhtml) |
done | 0(历史承接) |
| 91 | 2.7.3 重量级锁的演示案例(OEBPS/Text/chapter87.xhtml) |
done | 0(已并入) |
| 92 | 2.8 偏向锁、轻量级锁与重量级锁的对比(OEBPS/Text/chapter88.xhtml) |
done | 0(历史承接) |
| 93 | 2.9 线程间通信(OEBPS/Text/chapter89.xhtml) |
done | 0(已并入) |
| 94 | 2.9.1 线程间通信的定义(OEBPS/Text/chapter90.xhtml) |
done | 1 |
| 95 | 2.9.2 低效的线程轮询(OEBPS/Text/chapter91.xhtml) |
done | 0(历史承接) |
| 96 | 2.9.3 wait方法和notify方法的原理(OEBPS/Text/chapter92.xhtml) |
done | 0(已并入) |
| 97 | 2.9.4 “等待-通知”通信模式演示案例(OEBPS/Text/chapter93.xhtml) |
done | 0(已并入) |
| 98 | 2.9.5 生产者-消费者之间的线程间通信(OEBPS/Text/chapter94.xhtml) |
done | 1 |
| 99 | 2.9.6 需要在synchronized同步块的内部使用wait和notify(OEBPS/Text/chapter95.xhtml) |
done | 0(历史承接) |
| 100 | 第3章 CAS原理与JUC原子类(OEBPS/Text/chapter96.xhtml) |
done | 0(引言) |
| 101 | 3.1 什么是CAS(OEBPS/Text/chapter97.xhtml) |
done | 0(节引言) |
| 102 | 3.1.1 Unsafe类中的CAS方法(OEBPS/Text/chapter98.xhtml) |
done | 0(历史承接) |
| 103 | 3.1.2 使用CAS进行无锁编程(OEBPS/Text/chapter99.xhtml) |
done | 1 |
| 104 | 3.1.3 使用无锁编程实现轻量级安全自增(OEBPS/Text/chapter100.xhtml) |
done | 0(已并入) |
| 105 | 3.1.4 字段偏移量的计算(OEBPS/Text/chapter101.xhtml) |
done | 0(历史承接) |
| 106 | 3.2 JUC原子类(OEBPS/Text/chapter102.xhtml) |
done | 0(节引言) |
| 107 | 3.2.1 JUC中的Atomic原子操作包(OEBPS/Text/chapter103.xhtml) |
done | 1 |
| 108 | 3.2.2 基础原子类AtomicInteger(OEBPS/Text/chapter104.xhtml) |
done | 0(已并入) |
| 109 | 3.2.3 数组原子类AtomicIntegerArray(OEBPS/Text/chapter105.xhtml) |
done | 1 |
| 110 | 3.2.4 AtomicInteger线程安全原理(OEBPS/Text/chapter106.xhtml) |
done | 0(已并入) |
| 111 | 3.3 对象操作的原子性(OEBPS/Text/chapter107.xhtml) |
done | 0(已并入) |
| 112 | 3.3.1 引用类型原子类(OEBPS/Text/chapter108.xhtml) |
done | 1 |
| 113 | 3.3.2 属性更新原子类(OEBPS/Text/chapter109.xhtml) |
done | 0(已并入) |
| 114 | 3.4 ABA问题(OEBPS/Text/chapter110.xhtml) |
done | 0 |
| 115 | 3.4.1 了解ABA问题(OEBPS/Text/chapter111.xhtml) |
done | 0 |
| 116 | 3.4.2 ABA问题解决方案(OEBPS/Text/chapter112.xhtml) |
done | 0 |
| 117 | 3.4.3 使用AtomicStampedReference解决ABA问题(OEBPS/Text/chapter113.xhtml) |
done | 0 |
| 118 | 3.4.4 使用AtomicMarkableReference解决ABA问题(OEBPS/Text/chapter114.xhtml) |
done | 1 |
| 119 | 3.5 提升高并发场景下CAS操作的性能(OEBPS/Text/chapter115.xhtml) |
done | 0 |
| 120 | 3.5.1 以空间换时间:LongAdder(OEBPS/Text/chapter116.xhtml) |
done | 0 |
| 121 | 3.5.2 LongAdder的原理(OEBPS/Text/chapter117.xhtml) |
done | 1 |
| 122 | 3.6 CAS在JDK中的广泛应用(OEBPS/Text/chapter118.xhtml) |
done | 0 |
| 123 | 3.6.1 CAS操作的弊端和规避措施(OEBPS/Text/chapter119.xhtml) |
done | 0 |
| 124 | 3.6.2 CAS操作在JDK中的应用(OEBPS/Text/chapter120.xhtml) |
done | 0 |
| 125 | 第4章 可见性与有序性的原理(OEBPS/Text/chapter121.xhtml) |
done | 0 |
| 126 | 4.1 CPU物理缓存结构(OEBPS/Text/chapter122.xhtml) |
done | 0 |
| 127 | 4.2 并发编程的三大问题(OEBPS/Text/chapter123.xhtml) |
done | 0 |
| 128 | 4.2.1 原子性问题(OEBPS/Text/chapter124.xhtml) |
done | 0 |
| 129 | 4.2.2 可见性问题(OEBPS/Text/chapter125.xhtml) |
done | 1 |
| 130 | 4.2.3 有序性问题(OEBPS/Text/chapter126.xhtml) |
done | 1 |
| 131 | 4.3 硬件层的MESI协议原理(OEBPS/Text/chapter127.xhtml) |
done | 0 |
| 132 | 4.3.1 总线锁和缓存锁(OEBPS/Text/chapter128.xhtml) |
done | 0 |
| 133 | 4.3.2 MSI协议(OEBPS/Text/chapter129.xhtml) |
done | 0 |
| 134 | 4.3.3 MESI协议及RFO请求(OEBPS/Text/chapter130.xhtml) |
done | 1 |
| 135 | 4.3.4 volatile的原理(OEBPS/Text/chapter131.xhtml) |
done | 0 |
| 136 | 4.4 有序性与内存屏障(OEBPS/Text/chapter132.xhtml) |
done | 0 |
| 137 | 4.4.1 重排序(OEBPS/Text/chapter133.xhtml) |
done | 0 |
| 138 | 4.4.2 As-if-Serial规则(OEBPS/Text/chapter134.xhtml) |
done | 0 |
| 139 | 4.4.3 硬件层面的内存屏障(OEBPS/Text/chapter135.xhtml) |
done | 1 |
| 140 | 4.5 JMM详解(OEBPS/Text/chapter136.xhtml) |
done | 0 |
| 141 | 4.5.1 什么是Java内存模型(OEBPS/Text/chapter137.xhtml) |
done | 1 |
| 142 | 4.5.2 JMM与JVM物理内存的区别(OEBPS/Text/chapter138.xhtml) |
done | 0 |
| 143 | 4.5.3 JMM的8个操作(OEBPS/Text/chapter139.xhtml) |
done | 0 |
| 144 | 4.5.4 JMM如何解决有序性问题(OEBPS/Text/chapter140.xhtml) |
done | 0 |
| 145 | 4.5.5 volatile语义中的内存屏障(OEBPS/Text/chapter141.xhtml) |
done | 0 |
| 146 | 4.6 Happens-Before规则(OEBPS/Text/chapter142.xhtml) |
done | 0 |
| 147 | 4.6.1 Happens-Before规则介绍(OEBPS/Text/chapter143.xhtml) |
done | 0 |
| 148 | 4.6.2 规则1:顺序性规则(OEBPS/Text/chapter144.xhtml) |
done | 0 |
| 149 | 4.6.3 规则2:volatile规则(OEBPS/Text/chapter145.xhtml) |
done | 0 |
| 150 | 4.6.4 规则3:传递性规则(OEBPS/Text/chapter146.xhtml) |
done | 0 |
| 151 | 4.6.5 规则4:监视锁规则(OEBPS/Text/chapter147.xhtml) |
done | 0 |
| 152 | 4.6.6 规则5:start()规则(OEBPS/Text/chapter148.xhtml) |
done | 0 |
| 153 | 4.6.7 规则6:join()规则(OEBPS/Text/chapter149.xhtml) |
done | 0 |
| 154 | 4.7 volatile不具备原子性(OEBPS/Text/chapter150.xhtml) |
done | 0 |
| 155 | 4.7.1 volatile变量的自增实例(OEBPS/Text/chapter151.xhtml) |
done | 0 |
| 156 | 4.7.2 volatile变量的复合操作不具备原子性的原理(OEBPS/Text/chapter152.xhtml) |
done | 0 |
| 157 | 第5章 JUC显式锁的原理与实战(OEBPS/Text/chapter153.xhtml) |
done | 0 |
| 158 | 5.1 显式锁(OEBPS/Text/chapter154.xhtml) |
done | 0 |
| 159 | 5.1.1 显式锁Lock接口(OEBPS/Text/chapter155.xhtml) |
done | 0 |
| 160 | 5.1.2 可重入锁ReentrantLock(OEBPS/Text/chapter156.xhtml) |
done | 0 |
| 161 | 5.1.3 使用显式锁的模板代码(OEBPS/Text/chapter157.xhtml) |
done | 0 |
| 162 | 5.1.4 基于显式锁进行“等待-通知”方式的线程间通信(OEBPS/Text/chapter158.xhtml) |
done | 0(旧卡承接) |
| 163 | 5.1.5 LockSupport(OEBPS/Text/chapter159.xhtml) |
done | 0(旧卡承接) |
| 164 | 5.1.6 显式锁的分类(OEBPS/Text/chapter160.xhtml) |
done | 0(旧卡承接) |
| 165 | 5.2 悲观锁和乐观锁(OEBPS/Text/chapter161.xhtml) |
done | 0(术语边界留 S3) |
| 166 | 5.2.1 悲观锁存在的问题(OEBPS/Text/chapter162.xhtml) |
done | 1 |
| 167 | 5.2.2 通过CAS实现乐观锁(OEBPS/Text/chapter163.xhtml) |
done | 0(旧卡承接) |
| 168 | 5.2.3 不可重入的自旋锁(OEBPS/Text/chapter164.xhtml) |
done | 0(旧卡承接) |
| 169 | 5.2.4 可重入的自旋锁(OEBPS/Text/chapter165.xhtml) |
done | 0(旧卡承接) |
| 170 | 5.2.5 CAS可能导致“总线风暴”(OEBPS/Text/chapter166.xhtml) |
done | 0(旧卡承接) |
| 171 | 5.2.6 CLH自旋锁(OEBPS/Text/chapter167.xhtml) |
done | 0(旧卡承接) |
| 172 | 5.3 公平锁与非公平锁(OEBPS/Text/chapter168.xhtml) |
done | 0 |
| 173 | 5.3.1 非公平锁实战(OEBPS/Text/chapter169.xhtml) |
done | 0(公平策略边界由下一项承接) |
| 174 | 5.3.2 公平锁实战(OEBPS/Text/chapter170.xhtml) |
done | 1 |
| 175 | 5.4 可中断锁与不可中断锁(OEBPS/Text/chapter171.xhtml) |
done | 0(旧卡承接) |
| 176 | 5.4.1 锁的可中断抢占(OEBPS/Text/chapter172.xhtml) |
done | 0(旧卡承接) |
| 177 | 5.4.2 死锁的监测与中断(OEBPS/Text/chapter173.xhtml) |
done | 2 |
| 178 | 5.5 共享锁与独占锁(OEBPS/Text/chapter174.xhtml) |
done | 0(旧卡承接) |
| 179 | 5.5.1 独占锁(OEBPS/Text/chapter175.xhtml) |
done | 0(旧卡承接) |
| 180 | 5.5.2 共享锁Semaphore(OEBPS/Text/chapter176.xhtml) |
done | 0(旧卡承接) |
| 181 | 5.5.3 共享锁CountDownLatch(OEBPS/Text/chapter177.xhtml) |
done | 0(旧卡承接) |
| 182 | 5.6 读写锁(OEBPS/Text/chapter178.xhtml) |
done | 0(旧卡承接) |
| 183 | 5.6.1 读写锁ReentrantReadWriteLock(OEBPS/Text/chapter179.xhtml) |
done | 0(旧卡承接) |
| 184 | 5.6.2 锁的升级与降级(OEBPS/Text/chapter180.xhtml) |
done | 1 |
| 185 | 5.6.3 StampedLock(OEBPS/Text/chapter181.xhtml) |
done | 0(旧卡承接) |
| 186 | 第6章 AQS抽象同步器的核心原理(OEBPS/Text/chapter182.xhtml) |
done | 0(旧卡承接) |
| 187 | 6.1 锁与队列的关系(OEBPS/Text/chapter183.xhtml) |
done | 0(旧卡承接) |
| 188 | 6.2 AQS的核心成员(OEBPS/Text/chapter184.xhtml) |
done | 0(旧卡承接) |
| 189 | 6.2.1 状态标志位(OEBPS/Text/chapter185.xhtml) |
done | 1 |
| 190 | 6.2.2 队列节点类(OEBPS/Text/chapter186.xhtml) |
done | 1 |
| 191 | 6.2.3 FIFO双向同步队列(OEBPS/Text/chapter187.xhtml) |
done | 1 |
| 192 | 6.2.4 JUC显式锁与AQS的关系(OEBPS/Text/chapter188.xhtml) |
done | 0(旧卡承接) |
| 193 | 6.2.5 ReentrantLock与AQS的组合关系(OEBPS/Text/chapter189.xhtml) |
done | 1 |
| 194 | 6.3 AQS中的模板模式(OEBPS/Text/chapter190.xhtml) |
done | 0(旧卡承接) |
| 195 | 6.3.1 模板模式(OEBPS/Text/chapter191.xhtml) |
done | 1 |
| 196 | 6.3.2 一个模板模式的参考实现(OEBPS/Text/chapter192.xhtml) |
done | 0(旧卡承接) |
| 197 | 6.3.3 AQS的模板流程(OEBPS/Text/chapter193.xhtml) |
done | 0(旧卡承接) |
| 198 | 6.3.4 AQS中的钩子方法(OEBPS/Text/chapter194.xhtml) |
done | 1 |
| 199 | 6.4 通过AQS实现一把简单的独占锁(OEBPS/Text/chapter195.xhtml) |
done | 0(旧卡承接) |
| 200 | 6.4.1 简单的独占锁的UML类图(OEBPS/Text/chapter196.xhtml) |
done | 0(旧卡承接) |
| 201 | 6.4.2 简单的独占锁的实现(OEBPS/Text/chapter197.xhtml) |
done | 0(旧卡承接) |
| 202 | 6.4.3 SimpleMockLock测试用例(OEBPS/Text/chapter198.xhtml) |
done | 0(旧卡承接) |
| 203 | 6.5 AQS锁抢占的原理(OEBPS/Text/chapter199.xhtml) |
done | 0(旧卡承接) |
| 204 | 6.5.1 显式锁抢占的总体流程(OEBPS/Text/chapter200.xhtml) |
done | 0(旧卡承接) |
| 205 | 6.5.2 AQS模板方法:acquire(arg)(OEBPS/Text/chapter201.xhtml) |
done | 1 |
| 206 | 6.5.3 钩子实现:tryAcquire(arg)(OEBPS/Text/chapter202.xhtml) |
done | 0(旧卡承接) |
| 207 | 6.5.4 直接入队:addWaiter(OEBPS/Text/chapter203.xhtml) |
done | 1 |
| 208 | 6.5.5 自旋入队:enq(OEBPS/Text/chapter204.xhtml) |
done | 0(并入 #207 卡) |
| 209 | 6.5.6 自旋抢占:acquireQueued()(OEBPS/Text/chapter205.xhtml) |
done | 0(旧卡承接) |
| 210 | 6.5.7 挂起预判:shouldParkAfterFailedAcquire()(OEBPS/Text/chapter206.xhtml) |
done | 0(旧卡承接) |
| 211 | 6.5.8 线程挂起:parkAndCheckInterrupt()(OEBPS/Text/chapter207.xhtml) |
done | 0(旧卡承接) |
| 212 | 6.6 AQS的两个关键点:节点的入队和出队(OEBPS/Text/chapter208.xhtml) |
done | 0(章节导语) |
| 213 | 6.6.1 节点的自旋入队(OEBPS/Text/chapter209.xhtml) |
done | 0(重复讲解) |
| 214 | 6.6.2 节点的出队(OEBPS/Text/chapter210.xhtml) |
done | 1 |
| 215 | 6.7 AQS锁释放的原理(OEBPS/Text/chapter211.xhtml) |
done | 0(章节导语) |
| 216 | 6.7.1 SimpleMockLock独占锁的释放流程(OEBPS/Text/chapter212.xhtml) |
done | 0(图由后续卡承接) |
| 217 | 6.7.2 AQS模板方法:release()(OEBPS/Text/chapter213.xhtml) |
done | 0(旧卡承接) |
| 218 | 6.7.3 钩子实现:tryRelease()(OEBPS/Text/chapter214.xhtml) |
done | 1 |
| 219 | 6.7.4 唤醒后继:unparkSuccessor()(OEBPS/Text/chapter215.xhtml) |
done | 1 |
| 220 | 6.8 ReentrantLock的抢锁流程(OEBPS/Text/chapter216.xhtml) |
done | 0(旧卡承接) |
| 221 | 6.8.1 ReentrantLock非公平锁的抢占流程(OEBPS/Text/chapter217.xhtml) |
done | 0(由后续代码说明) |
| 222 | 6.8.2 非公平锁的同步器子类(OEBPS/Text/chapter218.xhtml) |
done | 0(旧卡承接) |
| 223 | 6.8.3 非公平抢占的钩子方法:tryAcquire(arg)(OEBPS/Text/chapter219.xhtml) |
done | 0(旧卡承接) |
| 224 | 6.8.4 ReentrantLock公平锁的抢占流程(OEBPS/Text/chapter220.xhtml) |
done | 0(由后续代码说明) |
| 225 | 6.8.5 公平锁的同步器子类(OEBPS/Text/chapter221.xhtml) |
done | 0(并入新卡) |
| 226 | 6.8.6 公平抢占的钩子方法:tryAcquire(arg)(OEBPS/Text/chapter222.xhtml) |
done | 1 |
| 227 | 6.8.7 是否有后继节点的判断(OEBPS/Text/chapter223.xhtml) |
done | 0(并入 #226 卡) |
| 228 | 6.9 AQS条件队列(OEBPS/Text/chapter224.xhtml) |
done | 0(旧卡承接) |
| 229 | 6.9.1 Condition基本原理(OEBPS/Text/chapter225.xhtml) |
done | 0(旧卡承接) |
| 230 | 6.9.2 await()等待方法原理(OEBPS/Text/chapter226.xhtml) |
done | 1 |
| 231 | 6.9.3 signal()唤醒方法原理(OEBPS/Text/chapter227.xhtml) |
done | 0(旧卡承接) |
| 232 | 6.10 AQS的实际应用(OEBPS/Text/chapter228.xhtml) |
done | 0(旧卡承接) |
| 233 | 第7章 JUC容器类(OEBPS/Text/chapter229.xhtml) |
done | 0(章节导言) |
| 234 | 7.1 线程安全的同步容器类(OEBPS/Text/chapter230.xhtml) |
done | 0(旧卡承接) |
| 235 | 7.2 JUC高并发容器(OEBPS/Text/chapter231.xhtml) |
done | 0(旧卡承接) |
| 236 | 7.3 CopyOnWriteArrayList(OEBPS/Text/chapter232.xhtml) |
done | 0(旧卡承接) |
| 237 | 7.3.1 CopyOnWriteArrayList的使用(OEBPS/Text/chapter233.xhtml) |
done | 1 |
| 238 | 7.3.2 CopyOnWriteArrayList的原理(OEBPS/Text/chapter234.xhtml) |
done | 1 |
| 239 | 7.3.3 CopyOnWriteArrayList读取操作(OEBPS/Text/chapter235.xhtml) |
done | 0(旧卡承接) |
| 240 | 7.3.4 CopyOnWriteArrayList写入操作(OEBPS/Text/chapter236.xhtml) |
done | 0(旧卡承接) |
| 241 | 7.3.5 CopyOnWriteArrayList的迭代器实现(OEBPS/Text/chapter237.xhtml) |
done | 1 |
| 242 | 7.4 BlockingQueue(OEBPS/Text/chapter238.xhtml) |
done | 0(旧卡承接) |
| 243 | 7.4.1 BlockingQueue的特点(OEBPS/Text/chapter239.xhtml) |
done | 0(旧卡承接) |
| 244 | 7.4.2 阻塞队列的常用方法(OEBPS/Text/chapter240.xhtml) |
done | 1 |
| 245 | 7.4.3 常见的BlockingQueue(OEBPS/Text/chapter241.xhtml) |
done | 3 |
| 246 | 7.4.4 ArrayBlockingQueue的基本使用(OEBPS/Text/chapter242.xhtml) |
done | 0(旧卡承接) |
| 247 | 7.4.5 ArrayBlockingQueue构造器和成员(OEBPS/Text/chapter243.xhtml) |
done | 1 |
| 248 | 7.4.6 非阻塞式添加元素:add()、offer()方法的原理(OEBPS/Text/chapter244.xhtml) |
done | 0(旧卡承接) |
| 249 | 7.4.7 阻塞式添加元素:put()方法的原理(OEBPS/Text/chapter245.xhtml) |
done | 0(旧卡承接) |
| 250 | 7.4.8 非阻塞式删除元素:poll()方法的原理(OEBPS/Text/chapter246.xhtml) |
done | 0(旧卡承接) |
| 251 | 7.4.9 阻塞式删除元素:take()方法的原理(OEBPS/Text/chapter247.xhtml) |
done | 0(旧卡承接) |
| 252 | 7.4.10 peek()直接返回当前队列的头元素(OEBPS/Text/chapter248.xhtml) |
done | 1 |
| 253 | 7.5 ConcurrentHashMap(OEBPS/Text/chapter249.xhtml) |
done | 0(旧卡承接) |
| 254 | 7.5.1 HashMap和HashTable的问题(OEBPS/Text/chapter250.xhtml) |
done | 1 |
| 255 | 7.5.2 JDK 1.7版本ConcurrentHashMap的结构(OEBPS/Text/chapter251.xhtml) |
done | 1 |
| 256 | 7.5.3 JDK 1.7版本ConcurrentHashMap的核心原理(OEBPS/Text/chapter252.xhtml) |
done | 4 |
| 257 | 7.5.4 JDK 1.8版本ConcurrentHashMap的结构(OEBPS/Text/chapter253.xhtml) |
done | 1 |
| 258 | 7.5.5 JDK 1.8版本ConcurrentHashMap的核心原理(OEBPS/Text/chapter254.xhtml) |
done | 3 |
| 259 | 7.5.6 JDK 1.8版本ConcurrentHashMap的核心源码(OEBPS/Text/chapter255.xhtml) |
done | 2 |
| 260 | 第8章 高并发设计模式(OEBPS/Text/chapter256.xhtml) |
done | 0(章节导言) |
| 261 | 8.1 线程安全的单例模式(OEBPS/Text/chapter257.xhtml) |
done | 1 |
| 262 | 8.1.1 从饿汉式单例到懒汉式单例(OEBPS/Text/chapter258.xhtml) |
done | 1 |
| 263 | 8.1.2 使用内置锁保护懒汉式单例(OEBPS/Text/chapter259.xhtml) |
done | 1 |
| 264 | 8.1.3 双重检查锁单例模式(OEBPS/Text/chapter260.xhtml) |
done | 1 |
| 265 | 8.1.4 使用双重检查锁+volatile(OEBPS/Text/chapter261.xhtml) |
done | 1 |
| 266 | 8.1.5 使用静态内部类实现懒汉式单例模式(OEBPS/Text/chapter262.xhtml) |
done | 0(旧卡承接:《静态内部类延迟》) |
| 267 | 8.2 Master-Worker模式(OEBPS/Text/chapter263.xhtml) |
done | 0(旧卡承接:《Master拆分调度》) |
| 268 | 8.2.1 Master-Worker模式的参考实现(OEBPS/Text/chapter264.xhtml) |
done | 2 |
| 269 | 8.2.2 Netty中Master-Worker模式的实现(OEBPS/Text/chapter265.xhtml) |
done | 1 |
| 270 | 8.2.3 Nginx中Master-Worker模式的实现(OEBPS/Text/chapter266.xhtml) |
done | 1 |
| 271 | 8.3 ForkJoin模式(OEBPS/Text/chapter267.xhtml) |
done | 1 |
| 272 | 8.3.1 ForkJoin模式的原理(OEBPS/Text/chapter268.xhtml) |
done | 1 |
| 273 | 8.3.2 ForkJoin框架(OEBPS/Text/chapter269.xhtml) |
done | 1 |
| 274 | 8.3.3 ForkJoin框架使用实战(OEBPS/Text/chapter270.xhtml) |
done | 1 |
| 275 | 8.3.4 ForkJoin框架的核心API(OEBPS/Text/chapter271.xhtml) |
done | 3 |
| 276 | 8.3.5 工作窃取算法(OEBPS/Text/chapter272.xhtml) |
done | 1 |
| 277 | 8.3.6 ForkJoin框架的原理(OEBPS/Text/chapter273.xhtml) |
done | 1 |
| 278 | 8.4 生产者-消费者模式(OEBPS/Text/chapter274.xhtml) |
done | 1 |
| 279 | 8.5 Future模式(OEBPS/Text/chapter275.xhtml) |
done | 0(旧卡承接:《Future先给契约》;示例耗时前提留 S3 核验) |
| 280 | 第9章 高并发核心模式之异步回调模式(OEBPS/Text/chapter276.xhtml) |
done | 0(旧卡承接:Future、回调、Master-Worker) |
| 281 | 9.1 从泡茶的案例讲起(OEBPS/Text/chapter277.xhtml) |
done | 1 |
| 282 | 9.2 join:异步阻塞之闷葫芦(OEBPS/Text/chapter278.xhtml) |
done | 0(旧卡承接:《主动调用会阻塞》) |
| 283 | 9.2.1 线程的合并流程(OEBPS/Text/chapter279.xhtml) |
done | 0(旧卡承接:《主动调用会阻塞》《独立任务并行后再汇合》) |
| 284 | 9.2.2 调用join()实现异步泡茶喝(OEBPS/Text/chapter280.xhtml) |
done | 0(旧卡承接:Future、join、依赖汇合;中断处理留 S3 核查) |
| 285 | 9.2.3 join()方法详解(OEBPS/Text/chapter281.xhtml) |
done | 1 |
| 286 | 9.3 FutureTask:异步调用之重武器(OEBPS/Text/chapter282.xhtml) |
done | 0(旧卡承接:Callable、FutureTask、Future 契约) |
| 287 | 9.3.1 通过FutureTask获取异步执行结果的步骤(OEBPS/Text/chapter283.xhtml) |
done | 0(旧卡承接:Callable、FutureTask、Future 契约) |
| 288 | 9.3.2 使用FutureTask实现异步泡茶喝(OEBPS/Text/chapter284.xhtml) |
done | 1 |
| 289 | 9.4 异步回调与主动调用(OEBPS/Text/chapter285.xhtml) |
done | 0 |
| 290 | 9.5 Guava的异步回调模式(OEBPS/Text/chapter286.xhtml) |
done | 0 |
| 291 | 9.5.1 详解FutureCallback(OEBPS/Text/chapter287.xhtml) |
done | 1 |
| 292 | 9.5.2 详解ListenableFuture(OEBPS/Text/chapter288.xhtml) |
done | 1 |
| 293 | 9.5.3 ListenableFuture异步任务(OEBPS/Text/chapter289.xhtml) |
done | 1 |
| 294 | 9.5.4 使用Guava实现泡茶喝的实例(OEBPS/Text/chapter290.xhtml) |
done | 1 |
| 295 | 9.5.5 Guava异步回调和Java异步调用的区别(OEBPS/Text/chapter291.xhtml) |
done | 3 |
| 296 | 9.6 Netty的异步回调模式(OEBPS/Text/chapter292.xhtml) |
done | 1 |
| 297 | 9.6.1 GenericFutureListener接口详解(OEBPS/Text/chapter293.xhtml) |
done | 0 |
| 298 | 9.6.2 Netty的Future接口详解(OEBPS/Text/chapter294.xhtml) |
done | 1 |
| 299 | 9.6.3 ChannelFuture的使用(OEBPS/Text/chapter295.xhtml) |
done | 0(既有卡承接) |
| 300 | 9.6.4 Netty的出站和入站异步回调(OEBPS/Text/chapter296.xhtml) |
done | 1 |
| 301 | 9.7 异步回调模式小结(OEBPS/Text/chapter297.xhtml) |
done | 0(既有卡承接) |
| 302 | 第10章 CompletableFuture异步回调(OEBPS/Text/chapter298.xhtml) |
done | 0(既有卡承接) |
| 303 | 10.1 CompletableFuture详解(OEBPS/Text/chapter299.xhtml) |
done | 0(既有卡承接) |
| 304 | 10.1.1 CompletableFuture的UML类关系(OEBPS/Text/chapter300.xhtml) |
done | 1 |
| 305 | 10.1.2 CompletionStage接口(OEBPS/Text/chapter301.xhtml) |
done | 0(既有卡修订后承接) |
| 306 | 10.1.3 使用runAsync和supplyAsync创建子任务(OEBPS/Text/chapter302.xhtml) |
done | 1 |
| 307 | 10.1.4 设置子任务回调钩子(OEBPS/Text/chapter303.xhtml) |
done | 2 |
| 308 | 10.1.5 调用handle()方法统一处理异常和结果(OEBPS/Text/chapter304.xhtml) |
done | 0(修订既有卡承接,无新增卡) |
| 309 | 10.1.6 线程池的使用(OEBPS/Text/chapter305.xhtml) |
done | 0(既有卡承接,无新增卡) |
| 310 | 10.2 异步任务的串行执行(OEBPS/Text/chapter306.xhtml) |
done | 0(既有卡承接,无新增卡) |
| 311 | 10.2.1 thenApply()方法(OEBPS/Text/chapter307.xhtml) |
done | 0(修订既有卡承接,无新增卡) |
| 312 | 10.2.2 thenRun()方法(OEBPS/Text/chapter308.xhtml) |
done | 0(修订既有卡承接,无新增卡) |
| 313 | 10.2.3 thenAccept()方法(OEBPS/Text/chapter309.xhtml) |
done | 0(既有卡承接,无新增卡) |
| 314 | 10.2.4 thenCompose()方法(OEBPS/Text/chapter310.xhtml) |
done | 0(既有卡承接,无新增卡) |
| 315 | 10.2.5 4个任务串行方法的区别(OEBPS/Text/chapter311.xhtml) |
done | 0(修订既有卡承接,无新增卡) |
| 316 | 10.3 异步任务的合并执行(OEBPS/Text/chapter312.xhtml) |
done | 0(既有卡承接,无新增卡) |
| 317 | 10.3.1 thenCombine()方法(OEBPS/Text/chapter313.xhtml) |
done | 1 |
| 318 | 10.3.2 runAfterBoth()方法(OEBPS/Text/chapter314.xhtml) |
done | 1 |
| 319 | 10.3.3 thenAcceptBoth()方法(OEBPS/Text/chapter315.xhtml) |
done | 1 |
| 320 | 10.3.4 allOf()等待所有的任务结束(OEBPS/Text/chapter316.xhtml) |
done | 0(既有卡承接,无新增卡) |
| 321 | 10.4 异步任务的选择执行(OEBPS/Text/chapter317.xhtml) |
done | 0(既有卡承接,无新增卡) |
| 322 | 10.4.1 applyToEither()方法(OEBPS/Text/chapter318.xhtml) |
done | 0(既有卡承接,无新增卡) |
| 323 | 10.4.2 runAfterEither()方法(OEBPS/Text/chapter319.xhtml) |
done | 1 |
| 324 | 10.4.3 acceptEither()方法(OEBPS/Text/chapter320.xhtml) |
done | 1 |
| 325 | 10.5 CompletableFuture的综合案例(OEBPS/Text/chapter321.xhtml) |
done | 0(章节导语,无独立候选) |
| 326 | 10.5.1 使用CompletableFuture实现泡茶喝实例(OEBPS/Text/chapter322.xhtml) |
done | 0(既有卡承接,无新增卡) |
| 327 | 10.5.2 使用CompletableFuture进行多个RPC调用(OEBPS/Text/chapter323.xhtml) |
done | 0(既有卡承接;400/600毫秒不一致留S3) |
| 328 | 10.5.3 使用RxJava模拟RPC异步回调(OEBPS/Text/chapter324.xhtml) |
done | 1 |
| 上下游调度各有边界 | 已复用 | notes/_topics/async-composition.md |
| 术语名 | 出现章节 | 一句话语境 |
|---|---|---|
| RxJava | 第9章 9.4、10.5.3 | 第9章仅提名;#328用Observable与调度/汇合API演示RPC回调,但未展开响应式模型、背压等概念,保留待关联。 |
| 标题 | 类型(书/论文/框架/源码项目) | 出现章节 | 一句话语境 |
|---|---|---|---|
| 《Spring Cloud、Nginx高并发核心编程》 | 书 | 第9章 9.4 | 作为 RxJava 延伸阅读建议,未在本段展开介绍。 |
S2轮:全部 56 张卡片的 分类 字段已从历史旧枚举”专业/工作”迁移为当前模板六选一枚举(全部判定为”普通读书笔记卡”,本书未出现问题卡/延伸参考卡/操作参考卡/支付系统案例卡/结构图卡取材场景),并补齐 **参考来源** 的”位置/结论依据/原始内容”三项证据字段,逐一回读 _epub-src 对应 XHTML 原文核实。新增 P1 卡片 6 张(ch02-006、ch05-006、ch05-007、ch10-006、ch10-007,以及 P2 追加的 ch05-008),单卡修订 7 张(ch02-003、ch03-002、ch04-003、ch07-004、ch09-003、ch10-004、ch10-005)。
S3独立审查后的S4轮:审查发现系统性问题——54/56张卡片的 **内容** 字段超过 card-template.md 规定的 200 字硬上限(最严重 504 字),已全部逐张精简至 ≤200 字,删减内容中的版本号、多重限定移入”结论依据”字段或直接精简;同时补齐3张P1新增卡(ch01-006中断标志、ch01-007拒绝策略、ch05-009 CountDownLatch)+ 1张P2新增卡(ch05-010可重入),当前共 60 张卡片,全部通过 ≤200 字、三项证据字段齐全、无重复标题、无wikilink断链的机械复核。详见 _card_review.md 问题清单与对应卡片文件。
| 序号 | 实践标题 | 实践方式 | 状态(pending/done) | 关联章节 | 产出 |
|---|---|---|---|---|---|
| 1 | CHM桶锁在JDK17是否成立 | 实现深读 | done | 7 | 原历史核验保留;本轮补固定标签官方入口、首轮映射及两层计划,未重跑 |
| 2 | if判断wait条件真的会出错吗 | 其他(最小实验) | done | 2 | 原历史一次交错记录:3消费者中2个取空;不代表错误概率、未测虚假唤醒;本轮未运行 |
| 3 | 公共池线程饥饿的真实代价 | 其他(最小实验) | done | 10 | 原历史合成阻塞样例记录2004ms/0ms;不代表当前机器或实际IO测量,本轮未运行 |
| 4 | 复现懒汉单例竞态 | 其他(最小实验) | done | 8 | 计划固定并发判空交错并对比对象身份;尚未执行 |
实践候选筛选:done
筛选结论:保留四项具体计划,区分历史观察和新执行;暂不另造完整并发库或部署实验。更高成本实现并不能更直接回答这些机制与交错问题。原临时代码未在本轮恢复,历史记录不作为本轮实测证据。
沿用历史“编程语言类”标签,对照当前类别清单逐项复核。本书重点是 Java 线程、JMM、同步器和 JUC 组件;清单中属于 Java 语言全貌、但原书没有实质展开的维度如实记为未覆盖。零散的 API 示例或术语提及不等于解释该维度的设计机制。
| 维度 | 覆盖状态 | 关联卡片标题或未覆盖理由 |
|---|---|---|
| 类型系统 | 未覆盖 | Callable<V> 的返回类型只用于异步任务示例;原书未解释 Java 类型系统、推断或泛型实现。 |
| 内存管理模型 | 未覆盖 | GC 线程只作为守护线程和运行时背景出现;原书未比较内存管理策略及取舍。 |
| 并发/并行模型 | 已覆盖 | 《线程是调度粒度》《JMM规则不等于物理内存布局》《同步队列排失败者》《工作窃取补负载》等分别覆盖线程、可见性、同步与并行任务。 |
| 错误处理机制 | 未覆盖 | 《异步链必须处理异常》等覆盖并发任务的异常传播,但原书未讨论语言级错误处理机制及与其他模型的取舍。 |
| 编译/执行模型 | 未覆盖 | 第 4 章在指令重排论证中涉及字节码、解释执行和 JIT,但没有系统讲解编译/执行模型及其设计。 |
| 模块/包与命名空间设计 | 未覆盖 | 代码示例中的 package 与导入语句只用于组织示例,未讲解模块或命名空间设计。 |
| 语言设计哲学与取舍 | 未覆盖 | 对 Java 并发 API 的用法和机制有比较,但没有以语言设计哲学或跨语言取舍为主题展开。 |
| 元编程/反射/宏能力 | 未覆盖 | 第 3 章通过反射获取 Unsafe 只是示例入口,未解释反射或元编程能力的机制与边界。 |
| 性能特性与其代价 | 已覆盖 | 《线程池要有边界》《CAS是乐观提交》《LongAdder分散热点》《读写锁看比例》等说明吞吐、竞争与资源代价。 |
本轮复核 58 张此前待定卡:53 张复用已有主题,5 张无需加入;历史主题维护结论保留,以本表逐卡记录为准。
| 卡片标题 | 结论 | 主题文件或原因 |
|---|---|---|
| 线程是调度粒度 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 进程是程序的运行实例 | 无需加入 | 概念区分用于线程章入门;现有并发任务主题聚焦线程/任务/同步语义,进程定义没有独立跨卡路径 |
| 进程控制块保存上下文 | 无需加入 | 进程管理结构细节;现有并发任务与单机I/O主题均不以PCB结构为阅读路径 |
| 线程私有栈保存调用帧 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| start才启动新线程 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 就绪不等于运行 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| Runnable只定义执行目标 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 函数式接口可用Lambda实现 | 无需加入 | Java语言语法桥接说明;现有并发主题不涵盖函数式接口设计 |
| 库存检查与扣减分离会超卖 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 库存校验与扣减同锁保护 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| Callable能返回计算结果 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 懒加载判空不能保证单例 | 已复用 | notes/_topics/memory-model-visibility.md |
| 同步单例也会锁热路径 | 已复用 | notes/_topics/lock-implementation.md |
| 双检需锁内复查 | 已复用 | notes/_topics/memory-model-visibility.md |
| FutureTask承接结果 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 线程池复用工作线程 | 已复用 | notes/_topics/thread-pool-capacity-overload.md |
| submit返回结果句柄 | 已复用 | notes/_topics/async-composition.md |
| 时间片轮换形成并发 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 优先级不保证执行机会 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| stop可能破坏资源状态 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| Java线程状态转换 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 线程转储是瞬时快照 | 已复用 | notes/_topics/debugging-root-cause.md |
| 有意义线程名便于追踪 | 已复用 | notes/_topics/logging-observability.md |
| sleep不保证到点即运行 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 阻塞中断会清除标志 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| join等待目标线程结束 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| yield只是调度提示 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 守护状态须在启动前设置 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| Executor分离提交与执行 | 已复用 | notes/_topics/thread-pool-capacity-overload.md |
| 固定频率与固定延迟起点不同 | 无需加入 | 周期任务调度口径;现有异步结果编排与线程池容量主题均不以定时调度为阅读路径 |
| 线程池参数共同决定容量 | 已复用 | notes/_topics/thread-pool-capacity-overload.md |
| 任务异常由Future承载 | 已复用 | notes/_topics/async-composition.md |
| 线程工厂统一配置工作线程 | 已复用 | notes/_topics/thread-pool-capacity-overload.md |
| 零容量队列直接交接 | 已复用 | notes/_topics/thread-pool-capacity-overload.md |
| 线程池后置钩子清理线程上下文 | 已复用 | notes/_topics/thread-pool-capacity-overload.md |
| 线程池关闭先停接收再等任务 | 已复用 | notes/_topics/thread-pool-capacity-overload.md |
| 按线程初始化 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 线程局部值仅本线程 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 线程各有本地变量表 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 同一对象锁保护临界区 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 拆锁前确认状态不变量独立 | 已复用 | notes/_topics/lock-implementation.md |
| 静态同步锁住Class对象 | 已复用 | notes/_topics/lock-implementation.md |
| 对象布局依配置而变 | 已复用 | notes/_topics/lock-implementation.md |
| 字节序决定多字节布局 | 无需加入 | 通用数据表示基础;现有锁实现主题聚焦锁状态与竞争,不把字节序作为其成员 |
| 锁记录保存旧对象头 | 已复用 | notes/_topics/lock-implementation.md |
| 监视器区分入锁与条件等待 | 已复用 | notes/_topics/lock-implementation.md |
| 线程通信协调共享状态 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 检查条件与等待须共锁 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| CAS失败后重读并重算 | 已复用 | notes/_topics/lock-free-atomics.md |
| 按更新目标选择原子类 | 已复用 | notes/_topics/lock-free-atomics.md |
| 原子数组逐元素更新 | 已复用 | notes/_topics/lock-free-atomics.md |
| 原子引用只原子替换引用 | 已复用 | notes/_topics/lock-free-atomics.md |
| 布尔标记不能计数变更 | 已复用 | notes/_topics/lock-free-atomics.md |
| cellsBusy协调槽修改 | 已复用 | notes/_topics/lock-free-atomics.md |
| 可见性不能消除丢失更新 | 已复用 | notes/_topics/memory-model-visibility.md |
| 观测到零零不证明发生重排 | 已复用 | notes/_topics/memory-model-visibility.md |
| MESI按缓存行协调副本 | 已复用 | notes/_topics/memory-model-visibility.md |
| 发布标志应建立先行关系 | 已复用 | notes/_topics/memory-model-visibility.md |
| JMM规则不等于物理内存布局 | 已复用 | notes/_topics/memory-model-visibility.md |
| 线程池要有边界 | 已创建 | notes/_topics/thread-pool-capacity-overload.md |
| 按任务类型配线程 | 已创建 | notes/_topics/thread-pool-capacity-overload.md |
| ThreadLocal隔离 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| Daemon不担保收尾 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 中断只是设置一个标志 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 拒绝策略决定过载去向 | 已创建 | notes/_topics/thread-pool-capacity-overload.md |
| 竞态来自复合操作 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 对象头承载锁态 | 已创建 | notes/_topics/lock-implementation.md |
| 锁会逐级膨胀 | 已创建 | notes/_topics/lock-implementation.md |
| 等待通知须持锁 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 生产消费靠条件 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 等待条件必须循环复查 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| CAS是乐观提交 | 已创建 | notes/_topics/lock-free-atomics.md |
| Unsafe连接硬件 | 已创建 | notes/_topics/lock-free-atomics.md |
| ABA要看历史 | 已创建 | notes/_topics/lock-free-atomics.md |
| LongAdder分散热点 | 已创建 | notes/_topics/lock-free-atomics.md |
| 无锁也有边界 | 已创建 | notes/_topics/lock-free-atomics.md |
| 并发三难题 | 已创建 | notes/_topics/memory-model-visibility.md |
| 缓存带来可见性 | 已创建 | notes/_topics/memory-model-visibility.md |
| volatile传递信号 | 已创建 | notes/_topics/memory-model-visibility.md |
| 屏障约束重排 | 已创建 | notes/_topics/memory-model-visibility.md |
| HB是推理工具 | 已创建 | notes/_topics/memory-model-visibility.md |
| 显式锁需模板 | 已创建 | notes/_topics/lock-implementation.md |
| LockSupport是地基 | 已创建 | notes/_topics/lock-implementation.md |
| 自旋怕总线风暴 | 已创建 | notes/_topics/lock-implementation.md |
| CLH排队降竞争 | 已创建 | notes/_topics/lock-implementation.md |
| 读写锁看比例 | 已创建 | notes/_topics/lock-implementation.md |
| Semaphore限制共享名额 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 乐观读必须验证快照 | 已创建 | notes/_topics/lock-implementation.md |
| 可中断抢锁用于可取消等待 | 已创建 | notes/_topics/lock-implementation.md |
| CountDownLatch一次性计数 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 可重入锁允许自己再进 | 已创建 | notes/_topics/lock-implementation.md |
| AQS是同步骨架 | 已创建 | notes/_topics/lock-implementation.md |
| 模板方法管流程 | 已创建 | notes/_topics/lock-implementation.md |
| 同步队列排失败者 | 已创建 | notes/_topics/lock-implementation.md |
| 挂起前要确认前驱 | 已创建 | notes/_topics/lock-implementation.md |
| 条件队列分离等待 | 已创建 | notes/_topics/lock-implementation.md |
| 同步容器锁太粗 | 已创建 | notes/_topics/concurrent-containers.md |
| 写时复制偏向读 | 已创建 | notes/_topics/concurrent-containers.md |
| 阻塞队列管背压 | 已复用 | notes/_topics/overload-protection-degradation.md |
| CHM分段到桶锁 | 已创建 | notes/_topics/concurrent-containers.md |
| 并发容器选模型 | 已创建 | notes/_topics/concurrent-containers.md |
| DCL必须配volatile | 已创建 | notes/_topics/memory-model-visibility.md |
| 静态内部类延迟 | 已创建 | notes/_topics/memory-model-visibility.md |
| Master拆分调度 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 工作窃取补负载 | 已复用 | notes/_topics/goroutine-scheduling.md |
| Future先给契约 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 主动调用会阻塞 | 已创建 | notes/_topics/async-composition.md |
| 回调反转方向 | 已创建 | notes/_topics/async-composition.md |
| 回调线程要识别 | 已创建 | notes/_topics/async-composition.md |
| Guava增强Future | 已创建 | notes/_topics/async-composition.md |
| Netty监听IO完成 | 已创建 | notes/_topics/async-composition.md |
| 阶段表达流水线 | 已创建 | notes/_topics/async-composition.md |
| 用返回契约选异步工厂 | 已复用 | notes/_topics/async-composition.md |
| 观察与恢复分开 | 已复用 | notes/_topics/async-composition.md |
| 取消进入异常完成 | 已复用 | notes/_topics/async-composition.md |
| 双接口异步契约 | 已复用 | notes/_topics/async-composition.md(S6 同步成员) |
| 串行依赖选方法 | 已创建 | notes/_topics/async-composition.md |
| Compose避免嵌套 | 已创建 | notes/_topics/async-composition.md |
| 两路结果在此合并 | 已复用 | notes/_topics/async-composition.md |
| 两路就绪后做副作用 | 已复用 | notes/_topics/async-composition.md |
| 消费双路结果不产值 | 已复用 | notes/_topics/async-composition.md |
| 任一路正常后触发动作 | 已复用 | notes/_topics/async-composition.md |
| 消费择快结果不产值 | 已复用 | notes/_topics/async-composition.md |
| 合并等待全部 | 已创建 | notes/_topics/async-composition.md |
| 择快不是择优 | 已创建 | notes/_topics/async-composition.md |
| 默认公共池不放阻塞任务 | 已创建 | notes/_topics/thread-pool-capacity-overload.md |
| 异步链必须处理异常 | 已创建 | notes/_topics/async-composition.md |
| AQS竞争入队用CAS循环 | 已复用 | notes/_topics/lock-implementation.md |
| 递归任务按结果选基类 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 缓冲区隔离生产消费依赖 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| sizeCtl协调扩容 | 已复用 | notes/_topics/concurrent-containers.md |
| 回调汇合要防重复 | 已复用 | notes/_topics/async-composition.md |
| 发送次数不等于回写条数 | 无需加入 | Netty演示的计数口径勘误;现有异步编排主题聚焦结果契约,不收录该特定案例计量 |
| 读写锁可降级但不支持升级 | 已复用 | notes/_topics/lock-implementation.md |
| 模板方法固定算法骨架 | 已复用 | notes/_topics/lock-implementation.md |
| 公平锁不约束线程调度 | 已复用 | notes/_topics/lock-implementation.md |
| 独占释放验证持有线程 | 已复用 | notes/_topics/lock-implementation.md |
| 迭代器固定数组快照 | 已复用 | notes/_topics/concurrent-containers.md |
| 两种写入语义不同 | 已复用 | notes/_topics/concurrent-containers.md |
| 分治提交契约不同 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 用任务结果门控后续操作 | 已复用 | notes/_topics/async-composition.md |
| 数组与链式队列的取舍 | 已复用 | notes/_topics/concurrent-containers.md |
| 锁竞争会带来阻塞与调度成本 | 已复用 | notes/_topics/lock-implementation.md |
| 可重入锁组合AQS | 已复用 | notes/_topics/lock-implementation.md |
| 反向获取锁会形成循环等待 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 子任务结果仍需归并 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 成功失败走不同回调 | 已复用 | notes/_topics/async-composition.md |
| 归并结果需要完成信号 | 已复用 | notes/_topics/async-composition.md |
| 树化阈值与数组容量分开判断 | 已复用 | notes/_topics/concurrent-containers.md |
| 读写索引分工 | 已复用 | notes/_topics/concurrent-containers.md |
| 死锁检测范围有边界 | 已复用 | notes/_topics/debugging-root-cause.md |
| AQS钩子定义资源语义 | 已复用 | notes/_topics/lock-implementation.md |
| join只等待不返回结果 | 已复用 | notes/_topics/async-composition.md |
| 并行度不是线程硬上限 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| await释放并重获锁 | 已复用 | notes/_topics/lock-implementation.md |
| JDK7并发映射读路径不取段锁 | 已复用 | notes/_topics/concurrent-containers.md |
| asyncMode控制队列顺序 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| AQS节点状态协调等待 | 已复用 | notes/_topics/lock-implementation.md |
| HashMap并发修改需要同步 | 已复用 | notes/_topics/concurrent-containers.md |
| Netty结果补监听 | 已复用 | notes/_topics/async-composition.md |
| 框架回调接口的角色映射 | 已复用 | notes/_topics/async-composition.md |
| 写者串行与引用发布 | 已复用 | notes/_topics/concurrent-containers.md |
| 等待子任务时继续干活 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 唤醒时逆向查有效后继 | 已复用 | notes/_topics/lock-implementation.md |
| 无界队列不提供背压 | 已复用 | notes/_topics/overload-protection-degradation.md |
| 可变链路须安全发布 | 已复用 | notes/_topics/concurrent-containers.md |
| 闭区间阈值差一个元素 | 无需加入 | 书中分治求和示例的闭区间边界勘误;现有跨书主题没有以这一局部算式为阅读路径 |
| Nginx管理监听与工作进程 | 已复用 | notes/_topics/server-io-concurrency-models.md |
| 阻塞队列四种操作策略 | 已复用 | notes/_topics/concurrent-containers.md |
| peek只观察不占有队首 | 已复用 | notes/_topics/concurrent-containers.md |
| AQS队列按竞争懒初始化 | 已复用 | notes/_topics/lock-implementation.md |
| Master双层队列须限容量 | 已复用 | notes/_topics/overload-protection-degradation.md |
| 监听接口承接回调 | 已复用 | notes/_topics/async-composition.md |
| 延迟队列等待到期 | 已复用 | notes/_topics/concurrent-containers.md |
| 工作线程处理IO | 已复用 | notes/_topics/server-io-concurrency-models.md |
| AQS状态迁移需要CAS | 已复用 | notes/_topics/lock-implementation.md |
| 不可中断获取会恢复中断标志 | 已复用 | notes/_topics/lock-implementation.md |
| 公平获取先检查队列前驱 | 已复用 | notes/_topics/lock-implementation.md |
| 分治池没有中心调度 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
| 树桶容器与树节点不同 | 已复用 | notes/_topics/concurrent-containers.md |
| 同步包装不改变可变性 | 已复用 | notes/_topics/concurrent-containers.md |
| Node固定键并可见值链 | 已复用 | notes/_topics/concurrent-containers.md |
| 独立任务并行后再汇合 | 已复用 | notes/_topics/async-composition.md |
| JDK8并发映射读取不加锁 | 已复用 | notes/_topics/concurrent-containers.md |
| JDK7并发哈希表两层分桶 | 已复用 | notes/_topics/concurrent-containers.md |
| 单例唯一性与线程安全分开看 | 无需加入 | 单例模式的概念边界;现有内存模型主题聚焦可见性和安全发布,不把一般设计辨析作为成员 |
| AQS成功获取后推进队首 | 已复用 | notes/_topics/lock-implementation.md |
| 抢段锁时扫描可复用准备 | 已复用 | notes/_topics/concurrent-containers.md |
| 非空桶写入先锁定再复核 | 已复用 | notes/_topics/concurrent-containers.md |
| 窃取任务是一场竞争 | 已复用 | notes/_topics/concurrency-tasks-sync.md |
从本书的主题进入跨书阅读,对照其他书籍的讲解。下方数量包含主题关联的全部卡片与书籍。
主题索引
比较限流、减载、退避重试、分级依赖与防御成本的过载应对手段。
主题索引
比较进程/线程并发模型、I/O 多路复用、Reactor 与 Proactor 等单机高性能设计。
主题索引
比较线程/任务抽象、异步结果传递、原子与同步手段的语义差异和生命周期约束。
主题索引
Trace/Span 模型、标识与上下文传播、采样取舍、OpenTelemetry 与采集器管道。
主题索引
比较 Future、回调、监听器与阶段式编排在阻塞、线程归属、组合与异常传播上的差异。
主题索引
线程的创建、状态、join/sleep/中断与收束,任务抽象为什么高于线程,线程池与 ForkJoin 的并行度与工作窃取,守护线程、ThreadLocal 与线程私有栈在什么条件下成立,以及并发结构怎样划分执行与状态;Actor/角色把状态隔离到单一线程、用 Inbox 串行收消息,是这条线的另一种解法。
主题索引
把对象创建从使用中隔离出来:单例、工厂方法、抽象工厂、建造者、原型,以及各自的代价与语言差异。
主题索引
Future 先给契约、回调反转调用方向,Promise 三态与 then 链、async/await 与 generator 把异步写成线性,阶段式组合(Compose/AllOf/择快)在异常传播与线程归属上的差异,以及回调地狱与 Zalgo 这类时序陷阱。
主题索引
互斥锁与读写锁的适用比例、信号量与 CountDownLatch 的语义差别、条件等待为什么必须持锁并循环复查、锁顺序与可重入导致的死锁,以及粗粒度锁换简单性与细粒度锁换并发的代价。
主题索引
比较函数式与面向对象、一切皆对象、鸭子类型与泛型等语言范式对模块化、复用与扩展的影响。
主题索引
比较线程池/工作队列如何设定容量边界、按任务类型配置线程以及越界后的拒绝、丢弃与背压策略。
主题索引
比较排查系统问题时的假设管理、基线对比与复现方法。
主题索引
Reactor 与事件循环的基本结构,Netty 的 IO 线程与业务线程分工,Nginx 的事件模块、posted 请求、子请求调度与缓冲输出,响应式流的建模方式,以及阻塞调用如何破坏异步链路。
主题索引
比较浮点、定点等数值表示的精度误差与特殊值陷阱。
主题索引
原子不等于易变、volatile 不等于互斥,读改写为什么必须整体原子,竞态与数据争用的判定,内存屏障与顺序一致,双重检查锁与懒加载的发布问题,以及 Race 检测只覆盖运行路径的局限。
主题索引
比较锁状态存储、锁膨胀、自旋与排队队列、同步器骨架等锁实现机制及其竞争开销。
主题索引
Netty 的反应器、通道、流水线与处理器、ByteBuf 内存管理和编解码器的设计与使用边界。
主题索引
比较用户态协程、M:N 调度、工作窃取与抢占等调度器设计。
主题索引
比较同步容器、写时复制、分段/桶锁等并发容器的一致性模型与读写取舍。
主题索引
环形缓冲与乒乓缓冲怎样吸收速率差,有界队列的空满约束与 FIFO 余量,生产消费模型如何做限流与并发上限,以及缓冲只能吸收有限速差、不能替代背压。
主题索引
比较缓存可见性、指令重排、内存屏障与 happens-before 等内存模型规则及安全发布手段。
主题索引
比较 CAS、原子类、热点分散与 ABA 等无锁编程机制及其适用边界。
主题索引
比较扫描、时间槽与分层时钟轮的调度成本,及截止时间校验和周期任务重排的边界。