1  /**
  2     This program runs two greeting threads in parallel.
  3  */
  4  public class GreetingThreadRunner
  5  {
  6     public static void main(String[] args)
  7     {
  8        GreetingRunnable r1 = new GreetingRunnable("Hello");
  9        GreetingRunnable r2 = new GreetingRunnable("Goodbye");
 10        Thread t1 = new Thread(r1);
 11        Thread t2 = new Thread(r2);
 12        t1.start();
 13        t2.start();
 14     }
 15  }
 16