Class N08_Part2_DataStructureAccess.ArrayAccessSynchronized

java.lang.Object
  extended by N08_Part2_DataStructureAccess.TaskAbstract
      extended by N08_Part2_DataStructureAccess.ArrayAccess
          extended by N08_Part2_DataStructureAccess.ArrayAccessSynchronized
All Implemented Interfaces:
Runnable
Enclosing class:
N08_Part2_DataStructureAccess

protected static class N08_Part2_DataStructureAccess.ArrayAccessSynchronized
extends N08_Part2_DataStructureAccess.ArrayAccess

Same code as N08_Part2_DataStructureAccess.ArrayAccess except synchronize on N08_Part2_DataStructureAccess.ArrayAccess.integers around each access.


Field Summary
 
Fields inherited from class N08_Part2_DataStructureAccess.ArrayAccess
integers
 
Fields inherited from class N08_Part2_DataStructureAccess.TaskAbstract
index, mode, size
 
Constructor Summary
protected N08_Part2_DataStructureAccess.ArrayAccessSynchronized(int size, N08_Part2_DataStructureAccess.Mode mode)
           
 
Method Summary
 void run()
           
 
Methods inherited from class N08_Part2_DataStructureAccess.TaskAbstract
checkIntegers, makeIndices, makeIntegers, postBenchmarkCheck, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

N08_Part2_DataStructureAccess.ArrayAccessSynchronized

protected N08_Part2_DataStructureAccess.ArrayAccessSynchronized(int size,
                                                                N08_Part2_DataStructureAccess.Mode mode)
                                                         throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class N08_Part2_DataStructureAccess.ArrayAccess