001package horstmann.ch09_greeting;
002/**
003   This program runs two threads in parallel.
004 */
005public class ThreadTester
006{
007        public static void main(String[] args)
008        {
009                Runnable r1 = new GreetingProducer("Hello, World!");
010                Runnable r2 = new GreetingProducer("Goodbye, World!");
011
012                Thread t1 = new Thread(r1);
013                Thread t2 = new Thread(r2);
014
015                t1.start();
016                t2.start();
017        }
018}
019