1.

Describe Different States Of A Thread.

Answer»

A thread in Java can be in either of the following states:
Ready: When a thread is created, it’s in Ready STATE.
Running: A thread currently being EXECUTED is in running state.
Waiting: A thread waiting for another thread to free certain resources is in waiting state.
DEAD: A thread which has GONE dead after EXECUTION is in dead state.

A thread in Java can be in either of the following states:
Ready: When a thread is created, it’s in Ready state.
Running: A thread currently being executed is in running state.
Waiting: A thread waiting for another thread to free certain resources is in waiting state.
Dead: A thread which has gone dead after execution is in dead state.



Discussion

No Comment Found