摘要:ArrayBlockingQueue 底层以数组的结构存放队列元素,容量大小不可改变。 先看下变量: items:数组,用于存放队列中的元素 takeIndex:获取元素的索引位置 putIndex:存放元素的索引位置 count:队列中当前元素数量 lock:控制队列进出的锁,ArrayBlock
阅读全文
posted @ 2019-06-10 18:15
posted @ 2019-06-10 18:15
posted @ 2019-05-24 15:08
posted @ 2019-05-07 18:06
posted @ 2019-05-07 17:43
posted @ 2019-04-25 18:11