Lock-Free Algorithms: How Intel X86_64 Processors and Their Memory Model Works
Alex Popescu has links to both presentations and other resources by Martin Thompson on how to write lock-free algorithms.
Just in case you are interested in performance for your semantic/topic map applications.