updated starvation test for extra low resources thread
This commit is contained in:
parent
e38ec83de9
commit
4ca62d8995
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue