Systems and methods are described for resource locking and thread synchronization in a multiprocessor environment. A programming interface for using operations based on these transactions can be structured in several ways, including as n-word compare-and-swap operations or as atomic sequences of single-word loads and stores. The routing means route between lasers and output port portions of those fractions of signals transmitted by locking diffractive element sets. In addition, the invention includes a method of coating a curable layer onto a norbornene-based polymer layer or film without requiring a primer layer.