Skip to content

Commit

Permalink
core pool size should be same with max pool size
Browse files Browse the repository at this point in the history
  • Loading branch information
frsyuki committed Mar 3, 2017
1 parent d3950b4 commit 981546e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public MultiThreadAgent(
if (config.getMaxThreads() > 0) {
this.executorQueue = new LinkedBlockingQueue<Runnable>();
this.executor = new ThreadPoolExecutor(
0, config.getMaxThreads(),
60L, TimeUnit.SECONDS,
config.getMaxThreads(), config.getMaxThreads(),
0L, TimeUnit.SECONDS,
executorQueue, threadFactory);
}
else {
Expand Down

0 comments on commit 981546e

Please sign in to comment.