线程池的合理配置

1.CPU密集型任务,就需要尽量压榨CPU,参考值可以设置为NCPU+1;

2.IO 密集型任务,参考值可以设置为2*NCPU

猜你喜欢

转载自blog.csdn.net/wjxhhh123/article/details/84860747