atomic {
myWork = (GlobalQuery)todoList.pop();
- if(null == myWork) // no work in todolist
+ if(myWork == null) // no work in todolist
{
chk = checkCurrentWorkList(this);
}
}
if(chk == 1) { // it has query
+ atomic {
+ if(myWork == null)
+ System.out.println("myWork is null");
+ }
QueryThread.execute(this);
atomic {
GlobalString firstmachine;
GlobalString firstpage;
- int mid[] = new int[NUM_THREADS];
+ int mid[] = new int[8];
mid[0] = (128<<24)|(195<<16)|(136<<8)|162; //dc-1
mid[1] = (128<<24)|(195<<16)|(136<<8)|163; //dc-2
mid[2] = (128<<24)|(195<<16)|(136<<8)|164; //dc-3
+ mid[3] = (128<<24)|(195<<16)|(136<<8)|165; //dc-4
+ mid[4] = (128<<24)|(195<<16)|(136<<8)|166; //dc-5
+ mid[5] = (128<<24)|(195<<16)|(136<<8)|167; //dc-6
+ mid[6] = (128<<24)|(195<<16)|(136<<8)|168; //dc-7
+ mid[7] = (128<<24)|(195<<16)|(136<<8)|169; //dc-8
atomic {
firstmachine = global new GlobalString(args[1]);
SRC1=${MAINCLASS}.java
SRC2=Global${SUBCLASS}.java
SRC3=${SUBCLASS}Thread.java
-FLAGS= -dsm -nooptimize -debug -mainclass ${MAINCLASS}
+FLAGS= -dsm -transstats -nooptimize -debug -mainclass ${MAINCLASS}
default:
../../../buildscript ${FLAGS} -o ${MAINCLASS} ${SRC2} ${SRC3} ${SRC1}