使用java.util.concurrent.Executors类来开发线程池。同时使用ScheduledThreadPoolExecutor来代替timer。具体同步见《Java Concurrency in Practice》 赞微海报分享
近期评论