Class N08_Part2_DataStructureAccess.ThreadLocalAccess

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

protected static class N08_Part2_DataStructureAccess.ThreadLocalAccess
extends N08_Part2_DataStructureAccess.TaskAbstract

Similar code to N08_Part2_DataStructureAccess.MapAccess except use a ThreadLocal.


Field Summary
protected  ThreadLocal<Integer>[] integersPerThread
           
 
Fields inherited from class N08_Part2_DataStructureAccess.TaskAbstract
index, mode, size
 
Constructor Summary
protected N08_Part2_DataStructureAccess.ThreadLocalAccess(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
 

Field Detail

integersPerThread

protected final ThreadLocal<Integer>[] integersPerThread
Constructor Detail

N08_Part2_DataStructureAccess.ThreadLocalAccess

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

run

public void run()