随笔分类 - [02] Java并发编程
摘要:https://www.cnblogs.com/weibanggang/p/9470718.html
阅读全文
摘要:1.executor接口,使用executor接口的子接口ExecutorService用来创建线程池2.Lock接口下的ReentrantLock类,实现同步,比如三个线程循环打印ABCABCABC...3.atomic包,使用AtomicInteger类的incrementAndGet()方法来
阅读全文
摘要:https://blog.csdn.net/baidu_38083619/article/details/82527461
阅读全文
摘要:https://blog.csdn.net/qq_28089993/article/details/80650379
阅读全文
摘要:1.适应自旋锁 自旋锁:为了减少线程状态改变带来的消耗 不停地执行当前线程 2.锁消除: 不可能存在共享数据竞争的锁进行消除 3.锁粗化: 将连续的加锁 精简到只加一次锁 4.轻量级锁: 无竞争条件下 通过CAS消除同步互斥 5.偏向锁: 无竞争条件下 消除整个同步互斥,连CAS都不操作。原文链接:
阅读全文
摘要:https://blog.csdn.net/qq_32998153/article/details/79768905
阅读全文
摘要:https://www.jianshu.com/p/c449f152b5c5
阅读全文
摘要:https://blog.csdn.net/qq_41181619/article/details/81407289
阅读全文
摘要:https://blog.csdn.net/u013278314/article/details/83210710
阅读全文
摘要:https://blog.csdn.net/jingzi123456789/article/details/78004074
阅读全文
摘要:https://www.xuebuyuan.com/3243778.html
阅读全文
摘要:https://www.jianshu.com/p/9ff426a784ad
阅读全文
摘要:多线程下,两个线程交替打印0 -100,使用wait()和notify() 运行结果:
阅读全文
摘要:https://blog.csdn.net/si444555666777/article/details/82191127
阅读全文
摘要:https://blog.csdn.net/xiaokang123456kao/article/details/77331878
阅读全文
摘要:https://www.jianshu.com/p/da9d051dcc3d
阅读全文
摘要:https://blog.csdn.net/scgyus/article/details/79499650
阅读全文
摘要:https://www.cnblogs.com/ljy-skill/p/11073505.html
阅读全文
摘要:https://baijiahao.baidu.com/s?id=1609916413785756020&wfr=spider&for=pc
阅读全文
摘要:https://baijiahao.baidu.com/s?id=1612142459503895416&wfr=spider&for=pc
阅读全文