for (Exception exception : exceptionHolder) {
System.err.println("exception: "+exception.getMessage());
exception.printStackTrace();
}
assertTrue("Exceptions #" + exceptionHolder.size(), exceptionHolder.size() == 0);
assertEquals("Not all threads has finished", 3, finfishCount.intValue());
}
private void startThreadUpdateBGArea(final String areaName, final int maxLoop, final List<Exception> exceptionHolder,
final int sleepTime, final AtomicInteger finishedCount) {
// thread 2 : update,copy