theriom.com / dev
Happens-Before relationship in Java
The Happens-Before relationship is rarely properly understood, but is a vital part to parallel, or multi-threaded, programming. It explains the “how could that happen” problem that can happen with multiple running threads.
XSL to re-number sequences
Say you have an XML file, some of the elementa have attributes with sequence numbers, and you want to re-number them all consecutively, try this XSL: