Tag: concurrency
Missing timeout check on CountDownLatch.await can cause synchronization errors.
Preserve Thread Interruption Status Rule.
Misconfigured CompletableFuture.get or Future.get.
Synchronized objects should not be re-assigned in the same synchronized
block because the references to the synchronized object would be lost.
Improper use of locks in a multi-threaded program can lead to deadlock and cause the program to be unresponsive.
Improper use of thread-unsafe classes in multi-threaded programs can cause the programs to be unstable.
Atomicity violations caused by improper usage of ConcurrentHashMap
or ConcurrentLinkedQueue
can result in crashses or incorrect program results.
Oversynchronization with ConcurrentHashMap
or ConcurrentLinkedQueue
can reduce program performance.