New state: After the new Thread (parameter), a thread object is established;
Ready state: After the thread object is established, call the start () method, enter the ready state, at this time not directly call the run () method, the thread into the running state also need to preempt CPU resources to be able;
Running state: After the thread has grabbed the CPU resource and started executing the run () method, it enters the running state;
Blocking state: When the thread encounters some situation, it will temporarily exit the CPU resources, let other threads execute first, and then enter the thread blocking state;
Case of Thread blocking: 1. Sleep, 2 waits to be awakened, 3, when the thread tries to get a lock, the lock is being occupied by another thread; 4. Invoke I/O blocking operation
Thread End: The Run () method exits gracefully or the run () method is terminated without catching an exception that is a thread break.
Five states of Java Multi-threading