摘要: get()没有阻塞,即使有线程正在添加元素也没有阻塞。 public E get(int index) { return get(getArray(), index); } add()是阻塞的, public boolean add(E e) { final ReentrantLock lock = 阅读全文
posted @ 2021-06-10 21:25 ??,uunu 阅读(26) 评论(0) 推荐(0) 编辑