7172737475767778798081
TransactionFactoryImple theOTS = new TransactionFactoryImple(); Control myControl; grid_i localGrid = new grid_i(100, 100); int h, w, v; myControl = theOTS.create(0); if (myControl == null) { System.err.println("Could not create transaction!"); System.exit(-1);
100101102103104105106107108109110
// Run ten interations first. for (int i = 0; i < 10; i++) { control = factory.create(0); if (doCommit) control.get_terminator().commit(true); else control.get_terminator().rollback();
116117118119120121122123124125126
// Run 1000 interations. for (int i = 0; i < iters; i++) { control = factory.create(0); if (doCommit) control.get_terminator().commit(true); else control.get_terminator().rollback();
949596979899100101102103104
TransactionFactoryImple theOTS = new TransactionFactoryImple(); System.out.println("Creating transaction with 2 second timeout."); myControl = theOTS.create(2); if (myControl == null) { System.err.println("Could not create transaction!"); System.exit(-1);