removed unnecessary code
authorjihoonl <jihoonl>
Sat, 3 Oct 2009 07:49:30 +0000 (07:49 +0000)
committerjihoonl <jihoonl>
Sat, 3 Oct 2009 07:49:30 +0000 (07:49 +0000)
Robust/src/ClassLibrary/JavaDSM/Work.java

index 9b9c164a10436cbab14a6afe984b55ca66f81a42..3a1b59ecc67d9e342f6e44941f402cd54450285b 100644 (file)
@@ -17,14 +17,15 @@ public class Work extends Thread {
       workMID = MY_MID;
     }
 
+    System.out.println("Thread " + workMID + " has started");
     Task localTask;
     int chk; 
     int result;
     int i,j;
-    int cc;
                boolean isEmpty; 
 
     while(true) {
+
       atomic {
                                        isEmpty = tasks.isTodoListEmpty();              // flag > !keep assigning 
                        
@@ -42,7 +43,6 @@ public class Work extends Thread {
           tasks.setWork(currentWorkList[workMID]);
           localTask = tasks;
         }
-
         /* compute */
         localTask.execution();
 
@@ -50,7 +50,6 @@ public class Work extends Thread {
           /* push into done list */
           tasks.done(currentWorkList[workMID]);
                                        currentWorkList[workMID] = null;
-          cc = ((Drinker)tasks).ownTotal;
         }
       }
       else if(chk  == -1) {    // finished all work