One update taking much longer than the other, isn't optimal for either atoms or refs. In atoms, the faster update wins, which could randomly lead to a stream of faster updates starving few slow updates.
I believe refs behave similarly, though if you can make your updates commutative, you can take advantage of commute to eliminate contention for the ref. I think in the general case, agents provide the best fit, if you have to mix fast and slow updates, that have to be run in-order. kind regards -- 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.