Thread is a light weight program. Threads can run in parallel.
Input:
Output: Bye from Thread2 Hai from Thread1 Thread 1 returns: 0 Thread 2 returns: 0