Describe different states of a thread.
- NEW:The thread has been created but not started yet.
- RUNNABLE:The thread is executing or ready to run.
- BLOCKED:The thread is waiting for a monitor lock.
- WAITING:The thread is waiting indefinitely for another thread's signal.
- TIMED_WAITING:The thread is waiting for a specified amount of time.
- TERMINATED:he thread has finished execution.