ANSWER TRUE/FALSE.
A)If only one
thread is blocked in the wait method of an object and another thread
execute the notify method on that same object, then the first thread immediately
resumes execution.
B.) If a thread is blocked in the wait method of an object, and another thread executes
the notify method on the same object, it is still possible that the first thread might
never resume execution.
C.) If a thread is blocked in the wait method of an object, and another thread executes
the notify method on the same object then the first thread definitely resumes execution
as a direct and sole consequence of the notify call.
d)If two thread are blocked in the wait method of an object, and another thread
executes the notify method on the same object then the thread that executed the wait
call first definitely resumes execution as
a direct and sole consequence of the notify
call
THE ABOVE GIVEN QUESTION IS FROM PONY MOCK EXAM.LET ME KNOW THE CORRECT ONE'S.TO ME B OPTION SEEM'S TO BE CORRECT BUT NOT SURE,LET ME KNOW THE CORRECT ONE'S.