Author
thread question
Bing Lu
Ranch Hand
Joined: Oct 10, 2000
Posts: 42
posted Oct 22, 2000 16:40:00
0
If there's >=two thread waiting for an object's lock, and some other thread(owner of the lock) comes in saying notify(), which thread will get the lock, can any1 tell me. thanks
Aru Ven
Ranch Hand
Joined: Sep 28, 2000
Posts: 199
posted Oct 22, 2000 16:46:00
0
Hi Bing, There is no way to say which thread will get the lock... remeber the behaviour of threads are System/Vendor dependent.... Aruna
Bing Lu
Ranch Hand
Joined: Oct 10, 2000
Posts: 42
posted Oct 22, 2000 16:53:00
0
So thread priority does not matter? thanks
Ajith Kallambella
Sheriff
Joined: Mar 17, 2000
Posts: 5782
No, it does not. Priority is not a consideration while moving a thread from the waiting state to ready state. Ajith
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
subject: thread question