线程的使用经验(包括 Thread/Executor/Lock-free/阻塞/并发/锁等)

本次内容列表:

1.使用线程的经验:设置名称、响应中断、使用ThreadLocal

2.Executor:ExecutorService和Future

3.阻塞队列:put和take、offer和poll、drainTo

4.线程间的协调手段:lock、condition、wait、notify、notifyAll

5.Lock-free:atomic、concurrentMap.putlfAbsent、CopyOnWriteArrayList

6.关于锁使用的经验介绍

7.并发流程控制手段:CountDownlatch、Barrier

8.定时器:ScheduledExecutorService、大规模定时器TimeWheel

9.并发三大定律:Amdahl、Gustafson、Sun-Ni

1.线程的经验:无论何种方式,启动一个线程,就要给它一个名字。这对拍错诊断系统监控有帮助。否则诊断问题时,无法直观知道某个线程的用途

猜你喜欢

转载自www.cnblogs.com/sun-flower1314/p/9726852.html