Assume the following method is properly synchronized and called from a Thread A on an Object B
wait(2000);
After calling this method, when will the Thread A become a candidate to get another turn at the CPU?
A. After object B is notified or after two seconds.
B. After the lock on B is released or after two seconde.
C. Two seconds after object B is notified
D. Two seconds after lock B is released.
A is correct: Either event will make the thread a candidate to get another turn at the CPU
Question I thought Threads were notified � not objects
Thanks
wait(2000);
After calling this method, when will the Thread A become a candidate to get another turn at the CPU?
A. After object B is notified or after two seconds.
B. After the lock on B is released or after two seconde.
C. Two seconds after object B is notified
D. Two seconds after lock B is released.
A is correct: Either event will make the thread a candidate to get another turn at the CPU
Question I thought Threads were notified � not objects
Thanks