updated starvation test for extra low resources thread

This commit is contained in:
Greg Wilkins 2016-07-08 00:12:04 +10:00
parent e38ec83de9
commit 4ca62d8995
1 changed files with 1 additions and 2 deletions

View File

@ -247,7 +247,7 @@ public class ThreadStarvationTest
int acceptors = 0;
int selectors = 1;
int maxThreads = 10;
final int barried=maxThreads-acceptors-selectors;
final int barried=maxThreads-acceptors-selectors*2;
final CyclicBarrier barrier = new CyclicBarrier(barried);
@ -318,7 +318,6 @@ public class ThreadStarvationTest
output.flush();
}
byte[] buffer = new byte[48 * 1024];
List<Exchanger<Integer>> totals = new ArrayList<>();
for (Socket socket : sockets)