2019年4月26日

多线程之BlockingQueue中 take、offer、put、add的一些比较

摘要: 一、概述: BlockingQueue作为线程容器,可以为线程同步提供有力的保障。 二、BlockingQueue定义的常用方法 1.BlockingQueue定义的常用方法如下: 抛出异常 特殊值 阻塞 超时 插入 add(e) offer(e) put(e) offer(e, time, uni 阅读全文

posted @ 2019-04-26 10:36 cxhfuujust 阅读(17545) 评论(0) 推荐(2) 编辑

导航