Hi all,
This question is from a Mock
test.
How can u set the Priority of a
Thread ?
a. Using the setPriority() method in the class Thread/
b. Give the priority as a parameter to the constructor of the thread.
c. A thread can have priority from 1 to 10.
d. Thread priorities are given by the OS.
e. None of the above.
I choose a, c, d.
But the answer is only a, d. But why is c wrong..... any help ?
Thx in advance.
Aruna