General-purpose tools for working in multi-threaded environments.