ThreadPoolExecutor : Tasks are getting queued up and not submitted

后端 未结 6 1624
醉酒成梦
醉酒成梦 2021-02-03 11:42

We have a scenario where tasks submitted to ThreadPoolExecutor are long running. When the thread pool is started we start it with core pool size = 5, max pool size = 20 and queu

6条回答
  •  温柔的废话
    2021-02-03 11:55

    i guess the best solution would be override the execute method of ThreadPoolExecutor and introduce the changes in that.

提交回复
热议问题