Program to demonstrate multithreading.