title: How can I test that ConcurrentHashMap is truly thread-safe?
body: <p>Just learning more about threads and concurrency, and thought of playing around with a regular hashtable and a ConcurrentHashMap.</p>
  
  <p>What would be a good way to test for concurrency for these hashtables? </p>
  
  <p>(obviously the hash table will fail this test)</p>
  
  <p>It would be cool if I could also somehow keep track of how many reads/writes the test performs to see which one (ht or conccurrent ht) faster.</p>