![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
多线程
jiji0801
看似平淡无奇,却也别有洞天!
展开
-
多线程
原创 2017-02-04 15:51:25 · 73 阅读 · 0 评论 -
LinkedBlockingQueue的put,add跟offer的区别
success and throwing an IllegalStateException if no space is currently available. This implementation returns true if offer succeeds, else throws an IllegalStateException. LinkedBlockingQueue构造的时候若没有指定大小,则默认大小为Integer.MAX_VALUE,当然也可以在构造函数的参数中指定大小。原创 2017-02-04 16:07:18 · 831 阅读 · 0 评论