print more data
[IRC.git] / Robust / TransSim / FileSim.java
index f782584718ca57ad0567e20847790dc222542102..8baca55cd2d871c4bf89d46ff7b08923f5c9647f 100644 (file)
@@ -14,16 +14,19 @@ public class FileSim {
     ls.join();
     System.out.println("Lazy Time="+ls.getTime());
     System.out.println("Aborts="+ls.getAborts()+" Commit="+ls.getCommits());
+    System.out.println("Stalltime="+ls.getStallTime()+" Backofftime="+ls.getBackoffTime());
     ls=null;
 
     ls4.join();
     System.out.println("Fast Abort="+ls4.getTime());
     System.out.println("Aborts="+ls4.getAborts()+" Commit="+ls4.getCommits());
+    System.out.println("Stalltime="+ls4.getStallTime()+" Backofftime="+ls4.getBackoffTime());
     ls4=null;
 
     ls5.join();
     System.out.println("Attack Abort="+ls5.getTime());
     System.out.println("Aborts="+ls5.getAborts()+" Commit="+ls5.getCommits());
+    System.out.println("Stalltime="+ls5.getStallTime()+" Backofftime="+ls5.getBackoffTime());
     ls5=null;
   }
 
@@ -41,16 +44,19 @@ public class FileSim {
     ls6.join();
     System.out.println("Suicide Abort="+ls6.getTime());
     System.out.println("Aborts="+ls6.getAborts()+" Commit="+ls6.getCommits());
+    System.out.println("Stalltime="+ls6.getStallTime()+" Backofftime="+ls6.getBackoffTime());
     ls6=null;
 
     ls7.join();
     System.out.println("Timestamp Abort="+ls7.getTime());
     System.out.println("Aborts="+ls7.getAborts()+" Commit="+ls7.getCommits());
+    System.out.println("Stalltime="+ls7.getStallTime()+" Backofftime="+ls7.getBackoffTime());
     ls7=null;
 
     ls8.join();
     System.out.println("Random Abort="+ls8.getTime());
     System.out.println("Aborts="+ls8.getAborts()+" Commit="+ls8.getCommits());
+    System.out.println("Stalltime="+ls8.getStallTime()+" Backofftime="+ls8.getBackoffTime());
     ls8=null;
   }
 
@@ -69,26 +75,46 @@ public class FileSim {
     ls9.join();
     System.out.println("Karma Abort="+ls9.getTime());
     System.out.println("Aborts="+ls9.getAborts()+" Commit="+ls9.getCommits());
+    System.out.println("Stalltime="+ls9.getStallTime()+" Backofftime="+ls9.getBackoffTime());
     ls9=null;
 
     ls10.join();
     System.out.println("Polite Abort="+ls10.getTime());
     System.out.println("Aborts="+ls10.getAborts()+" Commit="+ls10.getCommits());
+    System.out.println("Stalltime="+ls10.getStallTime()+" Backofftime="+ls10.getBackoffTime());
     ls10=null;
 
     ls11.join();
     System.out.println("Eruption Abort="+ls11.getTime());
     System.out.println("Aborts="+ls11.getAborts()+" Commit="+ls11.getCommits());
+    System.out.println("Stalltime="+ls11.getStallTime()+" Backofftime="+ls11.getBackoffTime());
   }
 
   public static void p4(Executor e) throws Exception {
-    FlexScheduler ls9=new FlexScheduler(e, FlexScheduler.THREAD, null);
-    ls9.start();
-
-    ls9.join();
-    System.out.println("Karma Abort="+ls9.getTime());
-    System.out.println("Aborts="+ls9.getAborts()+" Commit="+ls9.getCommits());
-    ls9=null;
+    FlexScheduler ls12=new FlexScheduler(e, FlexScheduler.THREAD, null);
+    ls12.start();
+    FlexScheduler ls13=new FlexScheduler(e, FlexScheduler.ATTACKTIME, null);
+    ls13.start();
+    FlexScheduler ls14=new FlexScheduler(e, FlexScheduler.ATTACKTHREAD, null);
+    ls14.start();
+
+    ls12.join();
+    System.out.println("ThreadPriority Abort="+ls12.getTime());
+    System.out.println("Aborts="+ls12.getAborts()+" Commit="+ls12.getCommits());
+    System.out.println("Stalltime="+ls12.getStallTime()+" Backofftime="+ls12.getBackoffTime());
+    ls12=null;
+
+    ls13.join();
+    System.out.println("AttackTime Abort="+ls13.getTime());
+    System.out.println("Aborts="+ls13.getAborts()+" Commit="+ls13.getCommits());
+    System.out.println("Stalltime="+ls13.getStallTime()+" Backofftime="+ls13.getBackoffTime());
+    ls13=null;
+
+    ls14.join();
+    System.out.println("AttackThread Abort="+ls14.getTime());
+    System.out.println("Aborts="+ls14.getAborts()+" Commit="+ls14.getCommits());
+    System.out.println("Stalltime="+ls14.getStallTime()+" Backofftime="+ls14.getBackoffTime());
+    ls14=null;
   }
 
   public static void main(String[] args) throws Exception {