How you can know a state of a thread?
bharat patel
http://stackoverflow.com/questions/12382898/how-do-i-check-the-state-of-a-thread