ScheduledThreadPoolExecutor with corePoolSize = 0 causes 100% load on one CPU core

前端 未结 1 1275
野性不改
野性不改 2021-01-11 11:34

Given is the following configuration of a ScheduledThreadPoolExecutor that runs a simple task every five seconds:

int corePoolSize = 0;
ScheduledExecutorServ         


        
1条回答
  •  萌比男神i
    2021-01-11 12:29

    It looks like you have hit JDK-8129861 that has been fixed in Java 9. It may also be related to JDK-8022642.

    0 讨论(0)
提交回复
热议问题