123124125126127128129130131132133
for (; i2 < RUNS; i2++) { do { pause(); } while (!excerpt2.index(i2)); char type = excerpt2.readChar(); if ('R' != type) assertEquals('R', type); int n = excerpt2.readInt(); if (i2 != n) assertEquals(i2, n);
107108109110111112113114115116117
excerpt.writeLong(0L); excerpt.writeDouble(0.0); excerpt.finish(); while (excerpt2.index(i2)) { char type = excerpt2.readChar(); if ('R' != type) assertEquals('R', type); int n = excerpt2.readInt(); if (i2 != n) assertEquals(i2, n);
122123124125126127128129130131132
for (; i2 < RUNS; i2++) { do { BusyWaiter.pause(); } while (!excerpt2.index(i2)); char type = excerpt2.readChar(); if ('R' != type) assertEquals('R', type); int n = excerpt2.readInt(); if (i2 != n) assertEquals(i2, n);
979899100101102103104105106107
excerpt.writeInt(i); excerpt.writeChars("Hello World!"); excerpt.finish(); while (excerpt2.index(i2)) { char type = excerpt2.readChar(); if ('R' != type) assertEquals('R', type); int n = excerpt2.readInt(); if (i2 != n) assertEquals(i2, n);
112113114115116117118119120121122
for (; i2 < RUNS; i2++) { do { busyWait(); } while (!excerpt2.index(i2)); char type = excerpt2.readChar(); if ('R' != type) assertEquals('R', type); int n = excerpt2.readInt(); if (i2 != n) assertEquals(i2, n);