这种考题要求考100...

newFixedThreadPool 和 newSingleThreadExecutor 允许的请求队列长度为 Integer.MAX_VALUE,可能会堆积大量请求,从而导致OOM

newCachedThreadPool 和  newSingleThreadScheduledExecutor 允许的最大线程数Integer.MAX_VALUE 可能会创建大量线程,从而导致OOM

原文地址:https://www.cnblogs.com/zhaiyt/p/10062746.html