記一次項目中線程池的實際應用

TestThreadServiceImpl類 // 線程池初始化     public static ThreadPoolExecutor pool = null;      //線程池各個參數定義     static     {         // corePoolSize:核心線程數(5)         // maxPoolSize:最大線程數(10)
相關文章
相關標籤/搜索