Sequence of operations for the Multithreading example.