摘要:
简介 ConcurrentHashMap;//线程安全的HashMap CopyOnWriteArrayList;//在读多写少的场合性能很好,远优于vector ConcurrentLinkedQueue;//线程安全的LinkedList BlockingQueue;//阻塞队列,适合作数据共享 阅读全文
摘要:
一、JDK对线程池的支持 常用方法 newFixedThreadPool(int Threads); newSingleThreadExecutor(); newCachedThreadPool(); newSingleThreadScheduledExecutor(); newScheduledT 阅读全文