// TestThreadPriority.java: Test thread priorities
public class TestThreadPriority
{
  // Main method
  public static void main(String[] args)
  {
    // Create three threads
    PrintChar printA = new PrintChar('a',200);
    PrintChar printB = new PrintChar('b',200);
    PrintChar printC = new PrintChar('c',200);

    // Set thread priorities
    printA.setPriority(Thread.NORM_PRIORITY);
    printB.setPriority(Thread.NORM_PRIORITY+1);
    printC.setPriority(Thread.NORM_PRIORITY+2);

    // Start threads
    printA.start();
    printB.start();
    printC.start();
  }
}
