y=tinfo[i].counter;
}
- //System.out.println("i= " + i + " i's count= " + y + " threadid= " + threadid + " mycount= " + x);
+ //System.printString("i= " + i + " i's count= " + y + " threadid= " + threadid + " mycount= " + x);
- while(y!=x && (Thread.getStatus(i) != -1)) {
+ while(y<x && (Thread.getStatus(i) != -1)) {
//Wait for 100 microseconds
sleep(100);
atomic {
//Do N rounds
//do one move per round and synchronise
for(int i = 0; i<ROUNDS; i++) {
-// System.out.println("iteration= " + i);
+ //System.out.println("iteration= " + i);
atomic {
doOneMove(land, gamer);
}
}
fi = System.currentTimeMillis();
- System.out.println("\n\n\n I'm Done - Time Elapse : " + (double)((fi-st)/1000) +"\n\n\n");
+ System.printString("\n\n\n I'm Done - Time Elapse : " + (double)((fi-st)/1000) +"\n\n\n");
RecoveryStat.printRecoveryStat();
while(true) {
Goal.java \
Path.java \
Node.java \
- AStarPathFinder.java \
- ../../../../ClassLibrary/JavaDSM/Thread.java
+ AStarPathFinder.java
-FLAGS1=-dsm -dsmcaching -recoverystats -recovery -optimize -mainclass ${MAINCLASS}
-DSMFLAGS=-dsm -dsmcaching -optimize -mainclass ${MAINCLASS}
+FLAGS1=-dsm -dsmcaching -recoverystats -recovery -transstats -optimize -mainclass ${MAINCLASS}
+DSMFLAGS=-dsm -dsmcaching -transstats -optimize -mainclass ${MAINCLASS}
default:
cpp ${MAINCLASS}.java > tmp1${MAINCLASS}.java
./extractLines
../../../../buildscript ${FLAGS1} -o Game ${SRC}
+ ../../../../buildscript ${DSMFLAGS} -o GameDSM ${SRC}
clean:
rm tmp1RainForest.java