摘要:
###使用阻塞队列存储下载链接,使用固定数量线程池,通过实现Runnable接口提交下载任务 public class Main { private static final int capacity=1000; private static BlockingQueue storage=new Li 阅读全文
posted @ 2022-04-20 22:25
吉比特
阅读(265)
评论(0)
推荐(0)
摘要:
1、阻塞队列实现 public class Main { private static final int capacity=2, ptime=6, ctime=6; private static BlockingQueue<Integer> storage=new LinkedBlockingQu 阅读全文
posted @ 2022-04-20 21:53
吉比特
阅读(47)
评论(0)
推荐(0)

浙公网安备 33010602011771号