![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
juc
筑梦之人
这个作者很懒,什么都没留下…
展开
-
LinkedBlockingQueue源码解析
E item;item = x;} } // 指定队列的长度,如果不传值,默认为Integer.MAX private final int capacity;// 记录数据条数 private final AtomicInteger count = new AtomicInteger();// 读锁 private final ReentrantLock takeLock = new ReentrantLock();原创 2023-01-11 18:33:34 · 324 阅读 · 0 评论 -
ArrayBlockingQueue源码解析
ArrayBlockingQueue底层使用了一个数组来实现队列,阻塞的实现使用了ReentrantLock原创 2023-01-11 18:32:36 · 348 阅读 · 0 评论