Tag:Main theme

  • Java Concurrent Programming — basic knowledge (1)

    Time:2021-2-5

    1. What is thread safety? When multithreading accesses a class or a resource, the class or resource can show the following characteristicsRight behaviorSo this is thread safety 2. What is thread safe class? When a multithread accesses a class, no matter what scheduling mode the running environment adopts or how these threads execute alternately, and […]