Multithreading Related concepts:
5 states of the thread:
1, new state: After the thread object is created, it enters the new state. Thread thread = new Thread ();
2, Ready State (Runnable): Executable state, after the thread object is created, the other thread invokes the object's start () method, and the thread is started. Is in a ready state and can be executed at any time by CPU scheduling.
3, running State (Running): The thread gets to the CPU being executed. A thread can only move from a ready state to a running state, not from another state.
4, blocking State (Blocked): The blocking state is that the thread has abandoned the use of the CPU for some reason and temporarily stopped running. Blocking is divided into three situations:
(a) Wait for blocking: by calling the thread's Wait () method, let the thread wait for the completion of a work.
(b) Synchronous blocking: threads are getting
Java Advanced feature Series-multithreading