摘要:
package com.rapoo.middle.action;import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.net.InetAddre... 阅读全文
posted @ 2015-12-23 15:52
ariellin
阅读(372)
评论(0)
推荐(0)
摘要:
研究ThreadPoolExecutor.excute()源码会发现,它调用了BlockingQueue.offer()来实现多余任务的入队。BlockingQueue有两个方法:BlockingQueue.offer()和BlockingQueue.put(),前者在队列满时不阻塞,直接失败,... 阅读全文
posted @ 2015-12-23 10:56
ariellin
阅读(510)
评论(0)
推荐(0)

浙公网安备 33010602011771号