I was giving mind Q mock exam,and came across this question
For what reasons might a
thread stop execution?
a) A thread with higher priority began execution.
b) The thread's wait() method was invoked.
c) The thread invoked its yield() method.
d) The thread's pause() method was invoked.
e) The thread's sleep() method was invoked.
My answer is a,b,e.
Answer given was a,b,c,e.
Why c is right?
In my view if yield() method is invoked,and there is no thread of higher or equal priority,then the same thread will start running.
Correct me , if I am wrong.