Multithreading: Controlling threads via sleep and join.