Discussion :: Threads
-
Which cannot directly cause a thread to stop executing?
A.
Calling the SetPriority() method on a Thread object.
|
B.
Calling the wait() method on an object.
|
C.
Calling notify() method on an object.
|
D.
Calling read() method on an InputStream object.
|
Answer : Option C
Explanation :
Option C is correct. notify() - wakes up a single thread that is waiting on this object's monitor.
Be The First To Comment