Java Multithreading, Concurrency, and Parallelism — Part 3
Life Cycle of a thread with Methods in Thread Class
For managing threads in java, we have many static and instance methods in the Thread
class. We can use these methods for creating, starting, pausing, and stopping threads.
Static Methods
static int activeCount()
static Thread currentThread()
static void dumpStack()
static boolean interrupted()
static void sleep()