Extracting thread-specific code from the application
Base for thread/mutex code