[Documentation] Adds code listings for multithreading examples