The Class Thread
Thread provides a constructor plus methods start, stop, run, interrupt, suspend, set priorities, get status, and resume threads.
public Thread() -- constructor for a new thread. This or the constructor for a subclass is called by the client process to create a new thread.
public void start() -- Called by client process to request that the Java runtime system run this thread instance.
public void run() -- We override this method to perform the work that we want done by the thread.
public void stop() -- (deprecated) Usually called by the client process to stop the thread.
public void interrupt() -- Usually called by the client process to get the thread’s attention, e.g., so that it can exit its run method and thereby stop.