For those who haven’t seen it before and are interested in writing concurrent algorithms or data structures in Java, this is an excellent read on the potential pitfalls you can fall into reasoning about memory ordering in Java.
Goes without saying that you need a really good reason to actually write such code, but for those who are curious or, God forbid, have to maintain code like this it’s a really useful read.
You must log in or # to comment.