第一章 课程准备
1-1 课程导学
基础:
核心:
扩展、高级:
1-2 并发编程初体验
最简单的场景举例:实现一个计数功能。
代码地址:https://github.com/zyuxuan/many-projects/blob/master/JavaConcurrency/Concurrency/src/main/java/com/mmall/concurrency/example/count/CountExample1.java
1-3 并发与高并发基本概念
2-1 CPU多级缓存-缓存一致性
3-1 案例环境初始化
3-2 案例准备工作
两个注解:https://github.com/zyuxuan/many-projects/blob/master/JavaConcurrency/Concurrency/src/main/java/com/mmall/concurrency/annoations/ThreadSafe.java
3-3 并发模拟-工具
ab -n 1000 -c 50 :8080/test
3-4 并发模拟-代码
代码地址:https://github.com/zyuxuan/many-projects/blob/master/JavaConcurrency/Concurrency/src/main/java/com/mmall/concurrency/ConcurrencyTest.java
4-1 线程安全性-原子性-atomic-1