This video explores the programming and performance a Java ConcurrentHashMap, a Java SynchronizedMap, and a HashMap protected with a Java StampedLock to compute/cache/retrieve large prime numbers. This example also demonstrates several advanced features of StampedLock (including conditional write locks and optimistic read locks), as well as showing the use of slicing with the Java streams takeWhile() and dropWhile() operations. This video replaces an earlier video that was not as thorough in its discussions of Java StampedLock.
0 Comments