Friday, 7 September 2012

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? | JAVA JSP

     A.    After object B is notified, or after two seconds
     B.    After the lock on B is released, or after two seconds
     C.    Two seconds after object B is notified
     D.    Two seconds after lock B is released.

  Ans: A

No comments: