• Multithreading Process in Java Program

    What is multithreading process? Multithreading Process in java program means multiple child process working together and control by main process. In this blog, we will see how three child processes Process-1, Process-2 and Process-3 work together. Work of three child processes are listed below. Child Process-1: Display 1 to 10 in 10 seconds. Child Process-2: […]

  • Extends Thread Class: Thread Programming

    In this blog, we will see child process B and main process Thread4. Process B extends Thread class. Thread4 is main process controls the child process B. Work of both Processes Child Process B: Display 1 to 10 in 10 seconds. Main Process Thread4: Display 1 to 10 20 seconds.   Location: Child Process B: […]

  • Implements Runnable Interface: Thread Programming

    In this blog, we will see child process A and main process Thread3. Process A implements runnable interface. Thread3 is main process controls the child process A. Work of both Processes Child Process A: Display 1 to 10 in 10 seconds. Main Process Thread3: Display 1 to 10 20 seconds.   Location: Child Process A: […]

  • How to setPriority of Thread Class?

    In this blog, we will see Thread Class and its object, we also see setPriority and setName method for setting of thread properties. Let’s see example and video on Thread Class. package examples; public class Thread2 {                 public static void main(String[] args)                 {                                 Thread t = Thread.currentThread();         // Process of creating an […]