Life Cycle of Thread
Learn Life Cycle of Thread (Multithreading&Multitasking, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
1. Introduction The life cycle of a thread is the set of states it passes through from creation until it dies: NEW , RUNNABLE , BLOCKED , WAITING , TIMED _WAITING and TERMINATED , defined in Thread.State . You can read the current state with getState() . BLOCKED means waiting for a monitor lock , while WAITING means a call such as wait() , join() or LockSupport.park() without a timeout.