class S extends Thread
{
public void run()
{
System.out.println(Thread.currentThread().getName());
System.out.println(Thread.currentThread().getPriority());
}
}
class F
{
public static void main(String[] args)
{
S t= new S();
S r= new S();
S y= new S();
t.setName("Thread 1");
r.setName("Thread 2");
y.setName("Thread 3");
t.setPriority(10);
r.setPriority(6);
y.setPriority(7);
t.start();
r.start();
y.start();
}
}