diff --git a/src/concurrency/test/Bank.java b/src/concurrency/test/Bank.java index 11b61bc..875f24d 100644 --- a/src/concurrency/test/Bank.java +++ b/src/concurrency/test/Bank.java @@ -42,7 +42,7 @@ public long sum() { public void simulate(int threads, int num, TransferStrategy ts) throws Exception{ ExecutorService service = - Executors.newFixedThreadPool(threads); + Executors.newFixedThreadPool(10); for (int i = 0; i < threads; i++) { service.submit(new BankThread(this, num, ts)); }