when i create a thread to do some functions the state of it will first be “running” but after that it will change into “waitsleepjoin”or”stopped” state so :
- How a thread can reach a waitsleepjoin state?
- How can a thread can reach the stopped state?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By calling
Sleep()orJoin(), or when waiting for a lock.After it finishes all of its code (after the original method returns)