On Friday, June 6, 2014 2:05:16 PM UTC-5, Gunnar Völkel wrote: > > In Java 7 you would use ThreadLocalRandom you said in another thread. > Well, in Java 6 you already have ThreadLocal [1] and thus you are able to > build a thread local Random yourself to keep Java 6 as minimum requirement. > > [1] > http://docs.oracle.com/javase/6/docs/api/index.html?java/lang/ThreadLocal.html >
OK, that's good to know. Great. I may use that. Thanks Gunnar. I still wonder whether the scheme I outlined would be a good strategy for preventing delays due to contention by different threads for the same RNG. In my scheme, none of the RNGs would actually be local to threads. Each would be globally accessible in principle, but no RNG would be accessed from more than one thread at a time. (I like keeping things simple, but maybe I'm being simplistic.) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.