Thread concept and life cycle of thread.