摘要: 简介 ConcurrentHashMap;//线程安全的HashMap CopyOnWriteArrayList;//在读多写少的场合性能很好,远优于vector ConcurrentLinkedQueue;//线程安全的LinkedList BlockingQueue;//阻塞队列,适合作数据共享 阅读全文
posted @ 2020-06-01 21:05 INnoVation-V2 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 一、JDK对线程池的支持 常用方法 newFixedThreadPool(int Threads); newSingleThreadExecutor(); newCachedThreadPool(); newSingleThreadScheduledExecutor(); newScheduledT 阅读全文
posted @ 2020-06-01 21:04 INnoVation-V2 阅读(200) 评论(0) 推荐(0) 编辑