Instances of java.util.Random are threadsafe. However, the concurrent use of the same java.util.Random instance across threads may encounter contention and consequent poor performance. Consider instead using ThreadLocalRandom in multithreaded designs.
java/random.txt · 마지막으로 수정됨: 2024/05/03 08:40 저자 kwon37xi