About Question enthuware.ocpjp.v8.2.1505 :
Posted: Sun Jan 31, 2016 7:48 am
"In which of the following cases a thread will definitely be alive but not be running?"
"The thread has issued a call to wait( )."
This statement is not necessarily true. A thread would have to own the intristic lock of the object for the thread to be definitely not running after a call to wait() has been issued.
If a call to wait() is issued and the calling thread does not own the lock on the object, an exception is thrown.
"The thread has issued a call to wait( )."
This statement is not necessarily true. A thread would have to own the intristic lock of the object for the thread to be definitely not running after a call to wait() has been issued.
If a call to wait() is issued and the calling thread does not own the lock on the object, an exception is thrown.