BlockingQueue深入分析

一、概述: BlockingQueue作为线程容器,可以为线程同步提供有力的保障。   二、BlockingQueue定义的常用方法 1.BlockingQueue定义的常用方法如下:   抛出异常 特殊值 阻塞 超时 插入 add(e) offer(e) put(e) offer(e, time, unit) 移除 remove() poll() take() poll(time, unit)
相关文章
相关标签/搜索