문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | |||
java:random [2024/05/03 08:40] kwon37xi |
java:random [2024/05/03 08:40] (현재) kwon37xi |
||
---|---|---|---|
줄 11: | 줄 11: | ||
<note warning> | <note warning> | ||
- | // javadoc 발췌 | ||
- | |||
- | |||
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. | 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. | ||
</ | </ |