[concurrency-interest] threadLocalRandomProbe

Ben Manes ben_manes at yahoo.com
Fri Aug 21 13:56:49 EDT 2015


Are there any plans on providing a handle or abstraction for threadLocalRandomProbe (as a thread-specific hash, e.g. Striped64)? It is quite useful for striping [1] and back-off arenas [2, 3]. It would be nice to not lose this optimization when transitioning away from Unsafe.

[1] https://github.com/ben-manes/caffeine/blob/master/caffeine/src/main/java/com/github/benmanes/caffeine/cache/StripedBuffer.java[2https://github.com/ben-manes/caffeine/wiki/SingleConsumerQueue[3https://github.com/ben-manes/caffeine/wiki/ConcurrentLinkedStack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20150821/5f39371c/attachment.html>


More information about the Concurrency-interest mailing list