Answer Posted / nashiinformaticssolutions
In Java, a thread can exist in any of the following states. The states are as follows:
New: When a new thread is first created, it is always in the new state. For a thread in the new state, the function hasn't begun to execute because it hasn't been performed yet.
Active: When a thread invokes the start() method, it moves from the new state to the active state. The active state contains both the running state and the runnable state.
Blocked or Waiting: When a thread is not active for a period of time (but not forever), it is either in the blocked state or the waiting state.
Timed waiting is what happens when we apply the sleep() technique to a certain thread.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is an example of a keyword?
How is treeset implemented in java?
What is a double?
What do you understand by private, protected and public?
What is a substitution variable?
What is java in layman terms?
What is skeleton and stub? What is the purpose of those?
What is the use of put method?
Explain treeset?
What is string example?
what is thread? : Java thread
Program to Find the second largest element in an array.
What are the types of literals?
What are the 4 types of research methods?
Write a program to print fibonacci series