對於ScheduledThreadPoolExecutor的幾點學習

1.計時: scheduleAtFi xedRate 從任務開始時計時,也就是下次執行時間=本次啓動時間+延時 scheduleWithFixedDelay 從任務 結束開始計時,下次執行時間=本次結束時間+延時 2.關於線程池大小(轉載 http://www.iteye.com/topic/1118660) 先看一副圖,描述了ThreadPoolExecutor的工作機制:      整個Thr
相關文章
相關標籤/搜索