Added a multithreading example.