The java.util.concurrent package provides better support for multithreading. such as
ConcurrentHashMap, multiple threads can be accessed simultaneously and can also ensure that the thread is secure, which allows unlimited number of read operations and a certain number of write operations simultaneously.
Can refer to Concurrent Programing in Java