Thread class saves some information attributes that can help us to identify a thread, know its status, or control its priority. These attributes are:
Threadobjects. Threads can have a priority between one and 10, where one is the lowest priority and 10 is the highest one. It's not recommended to change the priority of the threads, but it's a possibility that you can use if you want.
Thread. In Java,
Threadcan be in one of these six states: