Commit ab20f51a by shentao

Merge branch 'release' into 'master'

Release

See merge request !111
parents 70820fc5 cc01a9e6
......@@ -44,7 +44,7 @@ public class TaskPoolConfig {
executor.setMaxPoolSize(2);
// 配置线程池中的线程的名称前缀
executor.setThreadNamePrefix("aiMark-executor-");
executor.setQueueCapacity(100);
executor.setQueueCapacity(8);
// rejection-policy:当pool已经达到max size的时候,如何处理新任务
// CALLER_RUNS:不在新线程中执行任务,而是有调用者所在的线程来执行
executor.setRejectedExecutionHandler(new ThreadPoolExecutor.AbortPolicy());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment