package com.example.domain;

public class TestPriority {

	public static void main(String[] args) {
		SecondThread t1 = new SecondThread("T1");
		SecondThread t2 = new SecondThread("T2");
		SecondThread t3 = new SecondThread("T3");
		
		
		// set priority
		t1.setPriority(Thread.MAX_PRIORITY);
		t2.setPriority(Thread.MIN_PRIORITY);
		t3.setPriority(Thread.MIN_PRIORITY);
		
		t1.start();
		t2.start();
		t3.start();
	}

}
