What are the states associated in the thread
Thread contains ready, running, waiting and dead states. In Java, a thread can be in one of the following states: New: When a thread is created but not yet started, it is in the new state. Runnable: A thread that is ready to run is moved to the runnable state. It can be waiting for … Read more