Thread var = new Thread();
var.start();
=> run() method will be called ClassName var = new ClassName();
public class ClassName extends Thread {
// override
public void run() {}
}
ClassName var1 = new ClassName();
Thread var = new Thread(var1);
public class ClassName implements Runnable {
// redefined
public void run() {}
}
Thread.sleep()
Thread.currentThread()
Thread.activeCount()
Thread.yield()
var.start()
var.setName()
var.getName()
var.join()
synchronized
=> Synchronies the execution of threads, Used before function name