More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
What is the initial state of a thread when it is created and started ?
Wait
Running
Ready
Sleep
What state does a thread enter when it terminates its processing?
Wait
Ready
Dead
Running
Q4. Difference between yield() and sleeping()?
Ans. When a task invokes yield(), it changes from running state to runnable state. When a task invokes sleep(), it changes from running state to waiting/sleeping state.
Help us improve. Please let us know the company, where you were asked this question :
LikeDiscussCorrect / Improve  java   threads   multi threading   scheduling   thread states   yield   sleeping
Q5. What is the initial state of a thread when it is created and started ?
a. Wait b. Running c. Ready d. Sleep
Ans. Ready
Help us improve. Please let us know the company, where you were asked this question :