Java Program to Run Multiple Threads Last Updated : 22 Dec, 2020 Comments Improve Suggest changes Like Article Like Report Thread is a lightweight process. A process in execution is called a program. A subpart of a program is called a thread. Threads allow a program to operate more efficiently by doing multiple things at the same time performing complicated tasks in the background without interrupting the main program execution. All threads can communicate with each other. Java provides a Thread class to achieve thread programming. Thread class provides constructors and methods to create and perform operations on a thread. Various Thread Methods: start(): method is used to start the execution of the thread.run(): method is used to do an action.sleep(): This method sleeps a thread for the specified amount of time.resume(): This method is used to resume the suspended thread.stop(): This method is used to stop the thread.destroy(): This method is used to destroy the thread group and all of its subgroups.Syntax: public class Thread extends Object implements Runnable Java // Java Program to Run Multiple Threads // class extends thread class class Main extends Thread { // run method implementation public void run() { System.out.println("Geeks for Geeks"); } // in the main method public static void main(String args[]) { // object creation Main t1 = new Main(); // object creation Main t2 = new Main(); // object creation Main t3 = new Main(); // start the thread t1.start(); // start the thread t2.start(); // start the thread t3.start(); } } OutputGeeks for Geeks Geeks for Geeks Geeks for Geeks Comment More infoAdvertise with us Next Article Java Program to Run Multiple Threads S sravankumar_171fa07058 Follow Improve Article Tags : Java Java Programs Java-Multithreading Practice Tags : Java Similar Reads How to Use Locks in Multi-Threaded Java Program? A lock may be a more flexible and complicated thread synchronization mechanism than the standard synchronized block. A lock may be a tool for controlling access to a shared resource by multiple threads. Commonly, a lock provides exclusive access to a shared resource: just one thread at a time can ac 6 min read Java Program to Create a Thread Thread can be referred to as a lightweight process. Thread uses fewer resources to create and exist in the process; thread shares process resources. The main thread of Java is the thread that is started when the program starts. The slave thread is created as a result of the main thread. This is the 4 min read How to Temporarily Stop a Thread in Java? The suspend() method of thread class puts the thread from running to waiting state. This method is employed if you would like to prevent the thread execution and begin it again when a particular event occurs. This method allows a thread to temporarily cease execution. The suspended thread is often r 2 min read Java Threading Programs - Basic to Advanced Java threading is the concept of using multiple threads to execute different tasks in a Java program. A thread is a lightweight sub-process that runs within a process and shares the same memory space and resources. Threads can improve the performance and responsiveness of a program by allowing paral 3 min read Java Multithreading Tutorial Threads are the backbone of multithreading. We are living in the real world which in itself is caught on the web surrounded by lots of applications. With the advancement in technologies, we cannot achieve the speed required to run them simultaneously unless we introduce the concept of multi-tasking 15+ min read Like