• 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 […]

  • How to display 1 to 10 in 10 seconds? : Threading

    How to display 1 to 10 numbers in 10 seconds? : Answer : Threading   Use Of Threading Gaming Calendar Control Alarm Control All Music and Video Website or Software All Time and Date Management Software, Website and Application   Simple example on Threading package examples; class Thread1 {                 public static void main(String args[]) […]