Java Programming - Threads - Discussion
Discussion Forum : Threads - General Questions (Q.No. 12)
Assume the following method is properly synchronized and called from a thread A on an object B:
After calling this method, when will the thread A become a candidate to get another turn at the CPU?
Discussion:4 comments Page 1 of 1.
Vibhor said: 1 decade ago
Please give me more explanation about this question.
Dinesh said: 1 decade ago
Give me an explanation that how it works?
D.raj said: 10 years ago
Either of the two events (notification or wait time expiration) will make the thread become a candidate for running again.
Ashish said: 10 years ago
If Thread A is notified first, can it get CPU turn before the expiration of 2 sec?
Post your comments here: