![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并发编程
jack_zhou.
假如生活欺骗了你,
不要悲伤,不要心急!
忧郁的日子里须要镇静:
相信吧,快乐的日子将会来临!
心儿永远向往着未来;
现在却常是忧郁。
一切都是瞬息,一切都将会过去;
而那过去了的,就会成为亲切的怀恋。
展开
-
CAS、AtomicStampedReference、AtomicReference
CAS(Compare And Swap)、AtomicStampedReference、AtomicReference AtomicInteger.incrementAndGet AtomicInteger /** * Atomically increments by one the current value. * * @return the updated value */ public final int incrementAndGet() { return unsafe.getAn原创 2020-08-17 12:22:41 · 143 阅读 · 0 评论 -
wait-sleep-yield-join
文章目录waitsleepyieldjoin附录 多线程的基础方法,作此记录。 wait package com.kornzhou.javademo.concurrentprogramming.wait; /** * @author admin */ public class WaitDemo { // wait notify 要作用于同一对象 // 调用wait后,线程会释放对monitor对象的所有权 // public static void main(Stri原创 2020-08-11 11:36:13 · 517 阅读 · 0 评论 -
JUC并发工具类
CountDownLatch CyclicBarrierSemaphore Exchanger CountDownLatch原创 2020-08-11 10:27:57 · 156 阅读 · 0 评论