문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
java:random [2024/05/03 08:40] kwon37xi 만듦 |
java:random [2024/05/03 08:40] (현재) kwon37xi |
||
---|---|---|---|
줄 9: | 줄 9: | ||
* 하지만 대신 공유해서 사용할 경우 '' | * 하지만 대신 공유해서 사용할 경우 '' | ||
* 가급적 [[https:// | * 가급적 [[https:// | ||
+ | |||
+ | <note warning> | ||
+ | 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. | ||
+ | </ |