More Snippets for multithreaded apps