Java thread status record

Insert picture description hereAgain a photo image at:
Insert picture description here
newborn state :
is the NEW state, not ** start () **.
Insert picture description here
Ready state:

  1. Thread call: start();
  2. Unblocking;
  3. Thread call: yield() (polite thread)
  4. jvm switch

And running state:
collectively referred to as RUNNABLE state
Insert picture description here
blocking:

  1. Thread call: sleep();
  2. Thread call: join(); //Merge threads, thread jump
  3. IO stream, read() or write();

TIMED_WAITING status;

The end of the thread is the TIMENATED
Insert picture description here
Java self-study website

Guess you like

Origin blog.csdn.net/weixin_46083166/article/details/105302581