Show
Ignore:
Timestamp:
10/02/07 12:49:26 (1 year ago)
Author:
max
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/multithread/src/planet/simulate/Results.java

    r19 r28  
    2626  
    2727       
    28     public static synchronized void incStabRate() { 
     28    public static void incStabRate() { 
    2929      stabRate++; 
    3030    } 
    3131     
    32         public static synchronized void clearStabRate() { 
     32        public static void clearStabRate() { 
    3333          stabRate=0; 
    3434        } 
    3535         
    36         public static synchronized int getStabRate() { 
     36        public static int getStabRate() { 
    3737                return stabRate; 
    3838        } 
     
    5050        } 
    5151         
    52         public static synchronized int getTraffic() { 
     52        public static int getTraffic() { 
    5353          return traffic; 
    5454        }     
     
    5757         
    5858    //type --> in/out     
    59     public static synchronized void numMessagesTime(Id id, int step, int num, String type) { 
     59    public static void numMessagesTime(Id id, int step, int num, String type) { 
    6060      updateNodeStress(id,num,type); 
    6161          addMaxMessages(id,step,num,type);      
     
    138138        } 
    139139         
    140         public static synchronized void addInsert(String key,String dest) { 
     140        public static void addInsert(String key,String dest) { 
    141141                inserts.put(key,dest); 
    142142        } 
    143143         
    144         public static synchronized String getInsert(String key) { 
     144        public static String getInsert(String key) { 
    145145                return (String) inserts.get(key); 
    146146        } 
    147147 
    148         public static synchronized void resetInserts() { 
     148        public static void resetInserts() { 
    149149                inserts.clear(); 
    150150        } 
    151151         
    152         public static synchronized Hashtable getAllInserts() { 
     152        public static Hashtable getAllInserts() { 
    153153                return (Hashtable) inserts.clone(); 
    154154        } 
    155155         
    156         public static synchronized void addLookup(Id key, Id own) { 
     156        public static void addLookup(Id key, Id own) { 
    157157          lookups.put(key,own); 
    158158    } 
    159159         
    160         public static synchronized Id getLookup(Id key) {          
     160        public static Id getLookup(Id key) {       
    161161          return ((Id) lookups.get(key)); 
    162162    } 
    163163     
    164     public static synchronized void resetLookups(){ 
     164    public static void resetLookups(){ 
    165165      lookups.clear(); 
    166166    } 
    167167     
    168     public static synchronized Hashtable getAllLookups() { 
     168    public static Hashtable getAllLookups() { 
    169169      return (Hashtable) lookups.clone(); 
    170170    } 
    171171     
    172         public static synchronized void print () { 
     172        public static void print () { 
    173173          long total_in_msg = 0; 
    174174          long total_out_msg = 0; 
     
    223223         * print total and average hops 
    224224         */ 
    225         public static synchronized void printhops() { 
     225        public static void printhops() { 
    226226                Collection keys = hops.keySet(); 
    227227                Iterator  it = keys.iterator(); 
     
    255255        } 
    256256 
    257         public static synchronized int getLookup_number() { 
     257        public static int getLookup_number() { 
    258258                return lookup_number; 
    259259        }