is java.util.UUID thread safe?

前端 未结 2 2095
忘掉有多难
忘掉有多难 2021-02-05 03:47

I am asking this question because of following observations

  1. getting this stack trace in thread dump in highly multi threaded environment

    
    
            
2条回答
  •  天命终不由人
    2021-02-05 04:09

    Uuid is thread safe however there is another library called JUG which is more efficient in performance.

    Source :http://www.dcalabresi.com/blog/java/generate-java-uuid-performance/

提交回复
热议问题