Executor 建立好了以后,各种参数也可以修改的:
有那种不能在创建后,重新设置参数的pool,如 unconfigurableExecutorService,newSingleThreadExecutor。
如果你不想让pool的参数被改变,用unconfigurableExecutorService。
Executor 建立好了以后,各种参数也可以修改的:
有那种不能在创建后,重新设置参数的pool,如 unconfigurableExecutorService,newSingleThreadExecutor。
如果你不想让pool的参数被改变,用unconfigurableExecutorService。