in transaction/src/main/java/org/apache/geode_examples/transaction/Example.java [88:106]
void executeChildProcesses(int numberOfIncrementers) {
System.out.println("Expected value of counter: " + (numberOfIncrementers * INCREMENTS));
for (int i = 0; i < numberOfIncrementers; ++i) {
executeChildProcess(i + 1);
}
for (Map.Entry<Integer, Process> child : children.entrySet()) {
System.out.println("Waiting for " + child.getKey() + "...");
try {
child.getValue().waitFor();
System.out.println("Reaped child " + child.getKey());
} catch (InterruptedException ie) {
ie.printStackTrace();
}
}
System.out.println("Actual value of counter: " + region.get(KEY));
}