摘要: BlockingQueue的使用 本例介绍一个特殊的队列:BlockingQueue,如果BlockQueue 是空的,从BlockingQueue取东西的操作将会被阻断进入等待状态,直到BlockingQueue进了东西才会被唤醒.同样,如果 BlockingQueue是满的,任何试图往里存东西的 阅读全文
posted @ 2016-03-25 23:57 穿林度水 阅读(180) 评论(0) 推荐(0)