class MyThread extends Thread {
MyThread() {
setPriority(10);
}
public void run() {
System.out.println("starting up.");
while (true) { }
}
public static void main(String args[]) {
MyThread p1 = new MyThread();
MyThread p2 = new MyThread();
MyThread p3 = new MyThread();
p1.start();
p2.start();
p3.start();
}
}
A. True
B. False
|