What are the high-level thread states? The thread can be in one of the following states:
- Running state: A thread which is in running state has an access to the CPU. This means that the thread is being executed. - Ready state: A thread is in “Ready” state after it has been created and started. This state signifies that the thread is ready for execution. From here, it can be in the running state - Dead state: The thread reaches the Death state when it has finished execution. From here on it cannot be executed. - Waiting state: in this state, the thread is waiting for some action to happen. Once the action happens, the thread is in ready state.
- This waiting thread can be in either sleep, suspend, block or waiting for monitor state.
|