How can a threadpool be reused after shutdown

后端 未结 3 896
走了就别回头了
走了就别回头了 2020-12-14 00:26

I have a .csv file containing over 70 million lines of which each line is to generate a Runnable and then executed by threadpool. This Runnable will insert

3条回答
  •  爱一瞬间的悲伤
    2020-12-14 00:40

    create and group all tasks and submit them to the pool with invokeAll (which only returns when all tasks are successfully completed)

提交回复
热议问题