I read the explaination about the priority about the thread.
" the Thread gets the same priority as the thread that has created it."
Hi Simon,
This is true.
I Take your example - thread A create thread B.
Now A and B will have the same priority. (refer p284 Khalid).
Another question:
class A extends Thread{
}
class B extends Thread{
}
class C{
public static void main(String[] args){
A a= new A();
B b= new B();
}
}
Is there anything talking about the priority about thread A and thread B?
Here, the threads A and B will get the priority of main thread since it is the parent.
Also, when you don't set the priority of a thread, it assumes a Thread.NORM_PRIORITY.
Hope this helps,
------------------
Regards
---------
vadiraj
*****************
There's a lot of I in J.
*****************