What is the difference between Clojure STM (dosync) approach and Java synchronize Block?
I\'m reading the code below from \"The sleeping barber\" problem. (http://www.b
Also in addition to Michał's excellent answer, with STM transactions, reads always get you the frozen value at the beginning of the transaction and need not wait for any ongoing transaction to complete.