Java Multithreading, Concurrency and Parallelism — Part 2
Creation and Running a Thread
We have already mentioned in part-1 that a thread is an independent set of instructions that has its own private state. Every Java application has at least one thread named “main” without ourselves creating it. But what does it exactly mean when we say a Java Thread.
Well, a Java Thread is just an instance of a Java Class named
A thread in Java is just another object of class
Thread. This class offers methods to configure and operate on it. A…