Fixed indentation (tab to 4 spaces), Added pthread_exit